How to disable openssh-server & my sql server from startup services?

Karl Auer kauer at biplane.com.au
Sun Mar 9 07:40:20 UTC 2014


On Sun, 2014-03-09 at 12:49 +0530, Navdeep Singh Sidhu wrote:
> But how to disable them from starting on startup, bcz these tools made my
> computer bootup very slow. Using ubuntu 12.04.

Locate the upstart configuration files for the programs; they should be
in /etc/init

Using your favourite text editor, add the single word "manual" after
anything else in the "start on" section for the programs' config files.

After you save your changes, you will find that the programs will only
start when you ask them to - not on startup. However, they will still
STOP under the same conditions as before. If you want to prevent that
too, change the "stop on" stanza as well. Not recommended for MySQL,
which definitely should be shut down in an orderly fashion.

For full details on these config files, see "man 5 init". From that man
page:

   manual This stanza will disregard any previously seen start on
          definition.  By adding this stanza on any line below the
          start on definition,  it provides the ability to stop a
          job from being automatically started. When specified,
          the only way to start such a job is via start (8).

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
Old fingerprint: B862 FB15 FE96 4961 BC62 1A40 6239 1208 9865 5F9A






More information about the ubuntu-users mailing list