thx, the master is Centos 5.8 the client is RedHat 5.4
2012/7/4 Edward Savage <[email protected]> > On Wed, Jun 27, 2012 at 7:13 PM, Martin Alfke <[email protected]> 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 [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. > > -- 如有未尽事宜,请及时联系。分机-8752 ----- 朱文 PeterZhu 集团技术部 OPS ---------------- 办公电话:021-61821155-8753 移动手机:15000654460 办公传真:021-61821150 上海市浦东新区陆家嘴环路166号未来资产大厦10楼 安居客集团 -- 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.
