exec'd daemon processes tracked differently in and outside script stanza (broken when inside)
Bug #1090947 reported by
Claudio Luck
This bug report is a duplicate of:
Bug #406397: init: job stuck with expect fork/daemon when parent reaps child.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
upstart 1.5-0ubuntu7
When this works as expected:
expect [fork|daemon]
exec ...
transforming it into the following breaks it; Upstart then fails to find the correct process/PID:
expect [fork|daemon]
script
exec ...
end script
There are plenty of upstart jobs as part of the default system that use this form (e.g., /etc/init/ rsyslog. conf) without the problem you describe. Please provide a complete reproducer case for the issue you're seeing.