On 14/04/12 12:14, Svein Seldal wrote: > > I'm writing an application which shall be started from upstart (more > precisely Natty). > > Is there any difference between running a job without the expect stanza > together with an application which doesn't fork, compared to > implementing forking in the app and use expect fork? There is an internal difference with respect to how Upstart obtains the pid of the process, but from the applications perspective, no there is no difference.
The reason Upstart provides an 'expect' stanza is to allow it to supervise services or daemons which by design fork either once or twice. If you have an application that does not fork, it is not necessary to make it fork just to work with Upstart - just don't specify the 'expect' stanza. See below for further details: http://upstart.ubuntu.com/cookbook/#expect Kind regards, James -- James Hunt ____________________________________ http://upstart.ubuntu.com/cookbook http://upstart.ubuntu.com/cookbook/upstart_cookbook.pdf -- upstart-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel
