On Thu, 29 Apr 2010 15:00:03 +0200, Joerg Herzinger 
<[email protected]> 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

Attachment: pgpCmcpYVR9SG.pgp
Description: PGP signature

Reply via email to