From df5afa4fcd9725380f94ca6476248d4cc24f889a Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Sun, 29 Nov 2015 08:22:13 -0800 Subject: v2.4.4 audit sources Change-Id: I9315a7408817db51edf084fb4d27fbb492785084 Signed-off-by: Ashlee Young --- framework/src/audit/init.d/auditd.stop | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 framework/src/audit/init.d/auditd.stop (limited to 'framework/src/audit/init.d/auditd.stop') diff --git a/framework/src/audit/init.d/auditd.stop b/framework/src/audit/init.d/auditd.stop new file mode 100644 index 00000000..009da23c --- /dev/null +++ b/framework/src/audit/init.d/auditd.stop @@ -0,0 +1,16 @@ +#!/bin/sh +# Helper script to provide legacy auditd service options not +# directly supported by systemd + +# Check that we are root ... so non-root users stop here +test $EUID = 0 || exit 4 + +PATH=/sbin:/bin:/usr/bin:/usr/sbin +prog="auditd" +source /etc/init.d/functions + +echo -n $"Stopping logging: " +killproc $prog -TERM +RETVAL=$? +echo +exit $RETVAL -- cgit 1.2.3-korg