[Bug 690640] Re: dh_installinit upstart support start a job in postinst script regardless of previous status
Steve Langasek
steve.langasek at canonical.com
Wed Jan 26 06:39:37 UTC 2011
On Tue, Jan 25, 2011 at 09:15:25PM -0000, Clint Byrum wrote:
> 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.
Not very elegant to have upstart-job parsing the job files manually. If
upstart now knows about jobs that should only be started manually (this new
'manual' keyword), could we not instead extend the control interface so that
/sbin/start can take a new option ('--system'? '--maintainer-script'?) that
tells upstart to skip the operation for 'manual' jobs?
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
--
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