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
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