Dolda2000 GitWeb
/
ashd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'master' of fludd.seatribe.se:/usr/local/src/ashd
[ashd.git]
/
etc
/
debian
/
cron.weekly-ashd
1
#!/bin/sh
2
3
LOGDIR=/var/log/http
4
CYCLE=7
5
6
cd "$LOGDIR"
7
8
for log in *.log; do
9
if [ -e "$log" ]; then
10
pid="$(accesslog -P "$log" 2>/dev/null)"
11
savelog -qpt -c "$CYCLE" "$log"
12
if [ -n "$pid" ] && [ "$pid" -ne 0 ]; then kill -HUP "$pid"; fi
13
fi
14
done