disable a service?
James Hunt
james.hunt at canonical.com
Tue Apr 5 07:56:59 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/04/11 06:01, Doug wrote:
> I know this isn't strictly dev related, but I'm attempting to find out
> how to disable a service.
>
> I read some stuff here:
> http://upstart.ubuntu.com/cookbook/#job-with-stop-on-but-no-start-on
>
> That seems to suggest that by omitting the 'start on' directive you end
> up with a service that can only be started manually.
>
> That works.
>
> As does removing the conf file from /etc/init/
>
> However, I don't want to permanently mangle the init scripts on my
> system; I just want the ability to selectively turn them on or off.
>
> What is the suggested way of achieving this?
>
> cheers,
> Doug.
>
Hi Doug,
Assuming you are using Ubuntu Natty, you can use an "override file":
http://upstart.ubuntu.com/cookbook/#disabling-a-job-from-automatically-starting
http://upstart.at/2011/03/11/override-files-in-ubuntu-natty/
Regards,
James.
- --
James Hunt
____________________________________
Ubuntu Foundations Team, Canonical.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2ay0oACgkQYBWEaHcQG9cFFgCdExIeNhwLzGntN0HsfIX8/GwN
afAAmwak0fjBo38Z1srY20Gh4jdkpLRp
=SFAM
-----END PGP SIGNATURE-----
More information about the upstart-devel
mailing list