Issue #1856 has been updated by ohadlevy.
immerda wrote: > as outlined in #1809 the -p option isn't available on redhat systems prior to > 5. this is somehow a problem as the init.d script with your patch won't work > anymore on older systems. > > ideas for a better fix? The way I've implemented it, that my cron script stops the daemon only if status and there is no --onetime in the process arguments. nevertheless, this is only 50% fix, as if you run puppet manually or execute service puppet stop manually the same will happen... ---------------------------------------- Bug #1856: redhat init script doesn't honor pidfile on shutdown/reload http://projects.reductivelabs.com/issues/show/1856 Author: mfournier Status: Needs design decision Priority: Normal Assigned to: lutter Category: Red Hat Target version: Complexity: Trivial Affected version: 0.24.7 Keywords: redhat init script shutdown cron When puppet is run "by hand" and something happens to run "service puppet stop" at the same time, puppet get's killed because the initscript calls "pidof puppet" instead of checking if a pidfile exists. This is an problem when puppet is configured to be run by cron and is instructed to ensure no puppet service is running. Puppet sort of kills himself halfway through the job. Attached is a patch which solves the issue. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
