Ubuntu's Success Story: the Upstart Startup Manager (LinuxPlanet)
Posted Apr 9, 2010 14:03 UTC (Fri) by firstname.lastname@example.org
In reply to: Ubuntu's Success Story: the Upstart Startup Manager (LinuxPlanet)
Parent article: Ubuntu's Success Story: the Upstart Startup Manager (LinuxPlanet)
I discovered that with sysvinit it not possible to switch a job to "manual mode". Even though a job is stopped via the command
# /etc/init.d/jobname; stop
in the next reboot the it will be restarted.
It is possible to move the /etc/rc?.d/S??jobname file to another location in order to avoid the "automatic" behavior...
Seriously, though...this is easy to do with upstart. The /etc/init/jobname
.conf file describes precisely which events will cause the job to be started and stopped. If you don't specify any such events (i.e. comment out the "start on" and "stop on" lines), then it won't be started automatically.
So by commenting out these lines, you get the behavior you want: it won't start at boot time, but "start jobname" and "stop jobname" will still work.
to post comments)