[Lxc-users] init.d scripts not running on container start

Serge E. Hallyn serge.hallyn at canonical.com
Mon Nov 1 13:07:05 UTC 2010


Quoting Mark C. Hawkins (mhawkins at medalist.com.au):
> I setup a couple of lucid containers using bodhi.zazen post @ http://blog.bodhizazen.net/linux/lxc-configure-ubuntu-lucid-containers/ 
> 
> Instead of using debootstrap I downloaded some pre-made containers from some source. 
> 
> Part of the tutorial is the replacement of rc-sysinit and the removal of most of the .conf files from /etc/init/ including rc-sysinit.conf 
> 
> My problem is that none of the services in /etc/init.d/ start automatically, including /etc/init.d/rcS, which is where I added to the script to add the default gateway, so after every boot I need to manually add the default gateway and start the services 

You might just add the contents of that script to /etc/init/lxc.conf,
between the 'start script'/'end script' lines.




More information about the lxc-users mailing list