Imported Upstream version 2.4.3
[platform/upstream/audit.git] / init.d / auditd.restart
1 #!/bin/sh
2 # Helper script to provide legacy auditd service options not
3 # directly supported by systemd.
4
5 test -f /etc/audit/auditd.conf  || exit 6
6
7 /usr/libexec/initscripts/legacy-actions/auditd/stop
8 sleep 1
9 echo "Redirecting start to /bin/systemctl start auditd.service"
10 /bin/systemctl start auditd.service
11 RETVAL="$?"
12
13 exit $RETVAL