aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/audit/init.d/auditd.stop
blob: 009da23c982d888da1a4bf297a5d378f17b487f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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