can't restart auditd

1,090 views
Skip to first unread message

Cristian Falcas

unread,
Jul 26, 2014, 11:09:42 AM7/26/14
to puppet...@googlegroups.com
Hello list,

Because of this https://bugzilla.redhat.com/show_bug.cgi?id=973697, puppet can't do a restart for auditd:

Error: /Stage[main]/Auditd::Service/Service[auditd]: Failed to call refresh: Could not restart Service[auditd]: Execution of '/usr/bin/systemctl restart auditd' returned 4: Failed to issue method call: Operation refused, unit auditd.service may be requested by dependency only.

Can I fix this somehow? Can I choose which system to use to do the restart (service vs systemctl)?

Best regards,
Cristian Falcas

Matthias Saou

unread,
Jul 29, 2014, 4:36:16 AM7/29/14
to puppet...@googlegroups.com, cristi...@gmail.com
Take a look at :
http://docs.puppetlabs.com/references/stable/type.html#service

You *should* be able to force the restart command with something like
this (untested) :

service { 'auditd':
restart => '/sbin/service auditd restart',
# ... all your other parameters ...
}

Matthias

--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██████████████
Mail/XMPP: matt...@saou.eu ████ ██████ ████
██████████████████████
GPG: 4096R/E755CC63 ██ ██████████████ ██
8D91 7E2E F048 9C9C 46AF ██ ██ ██ ██
21A9 7A51 7B82 E755 CC63 ████ ████

Cristian Falcas

unread,
Jul 29, 2014, 7:22:30 AM7/29/14
to Matthias Saou, puppet...@googlegroups.com
Thank you, it works now :).

Reply all
Reply to author
Forward
0 new messages