[Pkg-puppet-devel] Bug#685347: puppet: init script fails starting when puppet already started.

Micah Anderson micah at riseup.net
Sat Sep 29 20:52:37 UTC 2012


Hello,

> When managing puppet under puppet, service puppet fails to start
> because start-stop-daemon returns 1(process already runniing) instead of 0.

Your service definition for puppet should not be run if puppet is already
running. Can you provide me with your service definition? I suspect you do not
have the 'hasstatus => true' set. 

> It could be fixed by adding "--oknodo" to the commandline of start-stop-daemon.
> # I wonder why "stop" has "--oknodo", while "start" doesn't have.

If you are running the puppet agent, and the puppet daemon is not running, and
--oknodo is set in the initscript for start, and you have a service definition
that attempts to start puppet, all that will happen is you will get a zero
result code when the service definition starts and puppet wont be run a second
time.

micah
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20120929/079c5179/attachment.pgp>


More information about the Pkg-puppet-devel mailing list