aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/audit/init.d/auditd.cron
blob: 7b8986971ba5bed177103dda6481f88549932700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

##########
# This script can be installed to get a daily log rotation
# based on a cron job.
##########

/sbin/service auditd rotate
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t auditd "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0