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

Attachment: signature.asc
Description: Digital signature

Reply via email to