File: auditd.restart

package info (click to toggle)
audit 1:2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-backports, jessie-kfreebsd
  • size: 5,308 kB
  • ctags: 5,589
  • sloc: ansic: 47,383; sh: 11,886; python: 1,949; makefile: 824
file content (13 lines) | stat: -rwxr-xr-x 334 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Helper script to provide legacy auditd service options not
# directly supported by systemd.

test -f /etc/audit/auditd.conf  || exit 6

/usr/libexec/initscripts/legacy-actions/auditd/stop
sleep 1
echo "Redirecting start to /bin/systemctl start auditd.service"
/bin/systemctl start auditd.service
RETVAL="$?"

exit $RETVAL