Debian Codegraph @

files/etc/cron.daily/logrotate

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #!/bin/sh
2 # THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY CHANGES WILL BE
3 # OVERWRITTEN.
4
•5 # skip in favour of systemd timer
6 if [ -d /run/systemd/system ]; then
7 exit 0
8 fi
9
10 # this cronjob persists removals (but not purges)
11 if [ ! -x /usr/sbin/logrotate ]; then
12 exit 0
13 fi
14
15 /usr/sbin/logrotate /etc/logrotate.conf
•16 EXITVALUE=$?
17 if [ $EXITVALUE != 0 ]; then
18 /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
19 fi
20 exit $EXITVALUE