Run chroot's /etc/init.d on system startup?

hopeseekr asked:

So I have this dedicated server that is running Debian. I have an intense business need (client’s requirement) that I also install Gentoo as a Chroot.

I have successfully done so, but now, I am trying to figure out to call Gentoo’s /etc/init.d from inside the chroot whenever the host Debian distribution’s /etc/init.d runs (e.g., on startup).

I surely hope this is possible!

My answer:


Don’t do this. Use Linux Containers; this is one thing that they’re well designed for.

For bonus points, use libvirt or one of its frontends such as virt-manager to make your life easier when managing the container(s).


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.