lib: Use abort() instead of exit() when smalloc fails.
[ashd.git] / etc / debian / cron.weekly-ashd
CommitLineData
a3314fb7
FT
1#!/bin/sh
2
3LOGDIR=/var/log/http
4CYCLE=7
5
6cd "$LOGDIR"
7
8for 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
14done