[Pkg-puppet-devel] Bug#579643: Bug#579643: puppetdlock doesn't get removed always

micah anderson micah at riseup.net
Thu Apr 29 22:10:52 UTC 2010


On Thu, 29 Apr 2010 15:00:03 +0200, Joerg Herzinger <joerg.herzinger at global2000.at> wrote:
> Package: puppet
> Version: 0.24.8-2ubuntu4
> Severity: normal
> Tags: patch
> 
> Im running a small company (60 clients, 15 Servers and VMs) all managed by puppet. My clients are Ubuntu, my Servers mostly lenny, some squeeze. From time to time I find that the lock file isn't removed after a reboot and puppetd doesn't start.
> This happens mostly with my clients so I guess its problem with rebooting when puppet is currently running. I would suggest adding something like
> 
> if [ -f /var/lib/puppet/state/puppetdlock ] &&  [ `pgrep -cx puppet` -eq "0" ]
> then
>     rm /var/lib/puppet/state/puppetdlock
> fi
> 
> to the start daemon part at the init script to delete the lockfile if it exists and puppet is not running.

Hmm, maybe it would be better to ship the default configuration to have
the lock file be put in /var/run so this would be avoided?

micah
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20100429/55a26e80/attachment.pgp>


More information about the Pkg-puppet-devel mailing list