Thank you, it works now :).


On Tue, Jul 29, 2014 at 11:36 AM, Matthias Saou <[email protected]> wrote:

> On Sat, 26 Jul 2014 18:09:05 +0300
> Cristian Falcas <[email protected]> wrote:
>
> > 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)?
>
> 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:  [email protected]             ████  ██████  ████
>                                        ██████████████████████
> GPG: 4096R/E755CC63                    ██  ██████████████  ██
>      8D91 7E2E F048 9C9C 46AF          ██  ██          ██  ██
>      21A9 7A51 7B82 E755 CC63                ████  ████
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMo7R_ePYFNVKQhV5OUQqEsjPtE0ePij2CeVZvB9-7pt-y6Yxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to