File: auditd.condrestart

package info (click to toggle)
audit 1%3A3.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,916 kB
  • sloc: ansic: 57,158; sh: 5,100; python: 2,938; makefile: 1,494; sed: 32
file content (11 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Helper script to provide legacy auditd service options not
# directly supported by systemd.

state=`service auditd status | awk '/^   Active/ { print $2 }'`
if [ $state = "active" ] ; then
	/usr/libexec/initscripts/legacy-actions/auditd/restart
	RETVAL="$?"
	exit $RETVAL
fi
exit 0