Start stop services controlled by upstart on karmic
Tom H
tomh0665 at gmail.com
Mon Nov 9 20:59:17 UTC 2009
> What is the recommended best practice approach to disable services
> controlled by upstart (in the /etc/init folder rather than /etc/init.d)
To start and stop them:
initctl [start|stop] <service>
They have unfortunately reversed the Ubuntu/Debian invoke-rc.d and
RHEL/Fedora service:
invoke-rc.d <service> [start|stop]
service <service> [start|stop]
:(
But this was probably done because "start/stop" are symlinked to
"initctl" and you can just run "[start|stop] <service>". It is a pain
nonetheless when you get an error after "initctl <service>
[start|stop]" if your fingers are hard-wired to do the previous
invocations.
This is what I have done for avahi-daemon to disable it and start it
manually when needed:
I replaced:
start on ...
by:
start on (runlevel [!0123456])
This is my "recipe." I am not sure what the orthodox way is, and, if
it is documented, it is even better hidden than the Grub 2
documentation.
More information about the ubuntu-users
mailing list