File: apcd.cron

package info (click to toggle)
apcd 0.6a.nr-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 376 kB
  • ctags: 143
  • sloc: ansic: 1,166; sh: 130; makefile: 74
file content (14 lines) | stat: -rw-r--r-- 200 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

conf=/etc/apcd.conf

set -- `grep ^LOGFILENAME $conf`
logfile=$2

test -n "$logfile" || exit 0

if [ -f $logfile ]; then
     savelog -c 12 $logfile > /dev/null
fi

/etc/init.d/apcd reload