File: logrotate.cron

package info (click to toggle)
logrotate 3.7.1-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 440 kB
  • ctags: 178
  • sloc: ansic: 2,008; sh: 308; makefile: 187
file content (8 lines) | stat: -rw-r--r-- 180 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0