On 06/27/2012 10:51 AM, Matthew Burgess wrote:
> is there something special about
> the puppet service that it issuing the equivalent of 'service puppet
> restart' doesn't actually work?
Oh, it works, but think of what you're having puppet do: By calling the
initscript and telling it to restart, it first has to "stop puppet",
i.e., send TERM to the agent process. So the agent is committing suicide
mid-run, taking the invocation of the initscript with it. Now nobody's
there to start puppet up again.
I've worked around this using exec { "echo service puppet restart | at
now+5min" } in the past, but this is quite the hack. Personally I have
found the cron model much more convenient that the long-running agent.
HTH,
Felix
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.