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

Tom H tomh0665 at gmail.com
Mon Mar 10 22:36:50 UTC 2014


On Sun, Mar 9, 2014 at 5:40 AM, Mauro Sanna <mrsanna1 at gmail.com> wrote:
> On 9 March 2014 08:40, Karl Auer <kauer at biplane.com.au> wrote:
>> 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.
>
> locate the scripts in /etc/init.d and then do a chmod -x

That's barbaric.

If you want to disable sysvinit boot scripts either use "update-rc.d
<daemon> disable" or change the "/etc/rc{2-5}.d/Sxy<daemon>" symlinks
to "/etc/rc{2-5}.d/Kij<daemon>".




More information about the ubuntu-users mailing list