Skip to content

Commit ff0e5f8

Browse files
authored
Remove awk call in condrestart legacy script (#452)
1 parent fdec3e4 commit ff0e5f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.d/auditd.condrestart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Helper script to provide legacy auditd service options not
33
# directly supported by systemd.
44

5-
state=$(systemctl status auditd | awk '/Active:/ { print $2 }')
5+
state=$(systemctl show -P ActiveState auditd)
66
if [ "$state" = "active" ] ; then
77
/sbin/auditctl --signal stop
88
/bin/systemctl start auditd

0 commit comments

Comments
 (0)