Help with debugging upstart script

Steve Langasek steve.langasek at ubuntu.com
Wed Nov 5 06:02:30 UTC 2014


Hi Thomas,

On Tue, Nov 04, 2014 at 02:05:03PM -0500, Thomas Berry wrote:
> I am new to upstart and having quite a bit of trouble debugging a script
> that I am trying to write that will manage Nginx's New Relic Plugin.

> I believe the issue is that Upstart is tracking the wrong PID. When I start
> the process with `initctl start nginx-nr-agent` the process starts and a
> PID is assigned - for example 27131.

> Then when I check using ps aux, I see the PID for that process I just
> started has incremented by 3 - i.e. 27134.

> I have `expect daemon`, but from what I understand expect daemon only works
> if the process forks twice.

That's correct; upstart expects at most two forks for the process that it's
supervising.

> Any help on this problem would be greatly appreciated.

Perhaps you can send your work-in-progress job to the list for
consideration?

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20141104/33e8da67/attachment.pgp>


More information about the upstart-devel mailing list