On Wed, Jun 27, 2012 at 7:13 PM, Martin Alfke <tux...@gmail.com> wrote:
>
> On 27.06.2012, at 11:01, Felix Frank wrote:
>
>> 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.
>
> We redefined the restart command:
>
> restart => '/usr/bin/nohup /etc/init.d/puppet restart &'
>
> - Martin
>

Late reply, however if you're using Ubuntu 10.04 or greater you can
avoid the nohup:

hasrestart      => true;

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to