Alright, I see where we do need this information encoded.
The current recommendation for natty is to add the word 'manual' to the
job configuration file to disable it. For 10.10 and earlier, commenting
out the start on line is the preferred method, or moving the file
somewhere else.
What if we added
if grep -q '^\s*start\s*on' /etc/init/${JOB}.conf && ! grep -q '^\s*manual'
/etc/init/${JOB}.conf ; then
$ACTION $JOB
fi
To upstart-job?
Since we already have to do a --no-start for special case event based
tasks, this would reliably catch the known ways to disable upstart jobs,
and otherwise doesn't change the behavior.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/690640
Title:
dh_installinit upstart support start a job in postinst script
regardless of previous status
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs