Help with debugging upstart script

Thomas Berry thom.berry at gmail.com
Tue Nov 4 19:05:03 UTC 2014


Hello all,

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.

Any help on this problem would be greatly appreciated.

Thanks,

-- 
Thomas Berry
Web: thomasberry.ca
Twitter: twitter.com/thomasreidberry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20141104/1a0d9322/attachment.html>


More information about the upstart-devel mailing list