aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/audit/init.d/auditd.restart
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/audit/init.d/auditd.restart')
-rwxr-xr-xframework/src/audit/init.d/auditd.restart13
1 files changed, 13 insertions, 0 deletions
diff --git a/framework/src/audit/init.d/auditd.restart b/framework/src/audit/init.d/auditd.restart
new file mode 100755
index 00000000..42669ff1
--- /dev/null
+++ b/framework/src/audit/init.d/auditd.restart
@@ -0,0 +1,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