script spawned twice
Steve Langasek
steve.langasek at ubuntu.com
Thu Sep 12 16:28:10 UTC 2013
Hi Leonardo,
On Thu, Sep 12, 2013 at 04:32:23PM +0200, Leonardo Gabrielli wrote:
> Dear all,
> I'm sorry to bother here in the list, but I can't find upstart
> experts on other forums.
> I am testing an upstart job for automatic connection of machines
> based on avahi and other stuff, similar to UPnP but focused on
> professional audio.
> The problem I'm facing it's hawkward: a script launched by the
> upstart job appears in the process list twice, one instance lives
> forever (as it must) and another spurious one is born periodically
> and dies in a few seconds. The strange thing is: the parent of the
> spurious script is the first instance, but in my script there is no
> command that should give birth to another instance of the script!
From what you describe, this isn't an upstart issue. Nothing in upstart
could force a script to spawn another process. I'm reasonably certain that
you could reproduce this issue by running the command by hand instead of in
an upstart job.
One thing to look for would be anything in the script that spawns a
subshell; I think that would show up in the process list in the way you
describe.
Hope that helps,
--
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: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20130912/5d2f737b/attachment.pgp>
More information about the upstart-devel
mailing list