[Bug 690640] Re: dh_installinit upstart support start a job in postinst script regardless of previous status

Clint Byrum clint at fewbar.com
Tue Jan 25 21:15:25 UTC 2011


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
Server Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/690640

Title:
  dh_installinit upstart support start a job in postinst script
  regardless of previous status



More information about the Ubuntu-server-bugs mailing list