Avoiding lxc start in boot (Ubuntu 12.10)

Avi Greenbury lists at avi.co
Fri Apr 26 10:27:48 UTC 2013


compdoc wrote:
> >How should I avoid lxc starting in boot ?
> You can remove the file you find. It's likely to have lcx in its name. 

This, generally, isn't the way to do it.

> You should also read about the command:  update-rc.d

This is (or was). On older Ubuntu's that used sysV, in order to stop a
service called 'service' from starting on boot you would do 

   update-rc.d -f service remove

On newer ones using Upstart you do:

   sudo echo "manual" > /etc/init/service.override

I'm not sure what the name is for LXC (to replace 'service' with
above); have a look in /etc/init.d/ and /etc/init and see if you can
see it. If you have an /etc/init then you're using Upstart.

If you're not sure, pastebin the output of these two commands and
we'll be able to give you a single command to run to disable it:

    ls /etc/init
    ls /etc/init.d/

-- 
Avi




More information about the ubuntu-users mailing list