Skip to contentSkip to conversation

auditd.service: if audit=0 in kernel cmdline do not start service

PATCH Applied Cristian Rodríguez 2 participants 2 messages Aug 15, 2014 – Aug 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 auditd.service: if audit=0 in kernel cmdline do not start service

If audit is disabled in the kernel command line, skip systemd service activation.

Signature · 3 lines
Cristian
"I don't know the key to success, but the key to failure is trying to
please everybody."
auditd.service +1 -0
Index: init.d/auditd.service
===================================================================
@@ -5,6 +5,7 @@
 Conflicts=shutdown.target
 Before=sysinit.target shutdown.target
 RefuseManualStop=yes
+ConditionKernelCommandLine=!audit=0
 
 [Service]
 ExecStart=/sbin/auditd -n
Applied
#1 lore raw
Quoted 2 lines · Cristian Rodríguez

If audit is disabled in the kernel command line, skip systemd service activation.

Applied in commit 996. Thanks!

-Steve