We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdec3e4 commit ff0e5f8Copy full SHA for ff0e5f8
init.d/auditd.condrestart
@@ -2,7 +2,7 @@
2
# Helper script to provide legacy auditd service options not
3
# directly supported by systemd.
4
5
-state=$(systemctl status auditd | awk '/Active:/ { print $2 }')
+state=$(systemctl show -P ActiveState auditd)
6
if [ "$state" = "active" ] ; then
7
/sbin/auditctl --signal stop
8
/bin/systemctl start auditd
0 commit comments