Re: [Puppet Users] running puppet agent manually under debian

Nigel Kersten
Fri, 08 Apr 2011 17:55:51 -0000

On Fri, Apr 8, 2011 at 10:34 AM, rektide <rektide@gmail.com>
wrote:
> the debian puppet package has a puppet agent running.  this creates a /
> var/run/puppet/agent.pid file.  when i run `sudo puppet agent`, i get:
>
> Could not prepare for execution: Could not create PID file: /var/run/
> puppet/agent.pid
>
> this prevents me from applying a change i want to make right now.
>
> in debian, assuming the user has installed the puppet package and thus
> has a puppet agent running, what steps should one take to manually run
> puppet agent (that is, to have puppet run)?  certainly there must be a
> non-full-of-shit option that doesnt entail stopping the daemon,
> manually running, then restarting the agent?

Send USR1 to the puppet agent process.

kill -USR1 $(cat /var/lib/puppet/run/agent.pid)

and it will reload and run.