Steven VanDevender
2008-Dec-08 22:36 UTC
[Puppet Users] puppet 0.24.6 conf/redhat/client.init broken in RHEL versions < 5
The conf/redhat/client.init script (installed in /etc/init.d) in 0.24.6 has this "status" method: status) status -p "$pidfile" $puppetd RETVAL=$? ;; Unfortunately the ''-p "$pidfile"'' option is available in Red Hat Server 5 but not earlier versions, where it produces an error: $ cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 7) $ /etc/init.d/puppet status pidof: invalid options on command line! pidof: invalid options on command line! -p is stopped $ We were using a standard cron job "/etc/init.d/puppet status || /etc/init.d/puppet restart" on our hosts to ensure Puppet stayed running; now it restarts Puppet every time the cron job runs (until I changed the cron job to use a different check for the existence of puppetd). --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Peter Meier
2008-Dec-08 22:48 UTC
[Puppet Users] Re: puppet 0.24.6 conf/redhat/client.init broken in RHEL versions < 5
Hi> Unfortunately the ''-p "$pidfile"'' option is available in Red Hat Server > 5 but not earlier versions, where it produces an error:can you file a bug? (and maybe even a patch for it?) cheers pete --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---