Imported Upstream version 2.4.3
[platform/upstream/audit.git] / init.d / auditd.rotate
1 #!/bin/sh
2 # Helper script to provide legacy auditd service options not 
3 # directly supported by systemd
4
5 # Check that we are root ... so non-root users stop here
6 test $EUID = 0  ||  exit 4
7
8 PATH=/sbin:/bin:/usr/bin:/usr/sbin
9 prog="auditd"
10 source /etc/init.d/functions
11
12 echo -n $"Rotating logs: "
13 killproc $prog -USR1
14 RETVAL=$?
15 echo
16 exit $RETVAL