[lxc-users] Container starts on incorrect runlevel

Fajar A. Nugraha list at fajar.net
Tue Oct 13 03:02:58 UTC 2015


On Mon, Oct 12, 2015 at 7:28 PM, Davide Baldini
<baldiniebaldini at gmail.com> wrote:
> Hello,
>
> when my container starts (lxc-start) it defaults to runlevel "S" and runs
> the scripts in /etc/rcS.d/; instead I need it to start on runlevel "2", but
> I can't figure out how.
>
> This container is made of a Debian 7 root tree taken as-is from an existing
> OpenVZ VE, in a porting attempt. The container's root tree, initially
> created by a template script, has been replaced with my existing OpenVZ
> tree. Every lxc configuration file on the whole system is default.
>
>
> Host:
>     Linux 4.1.1,
>     lxc 1.1.4
>     Debian 7

Try creating a new container with the download template, and see if it
starts at the correct runlevel.

IIRC there were some modifications needed for sysvinit-based
containers. Being copied from openvz, your rootfs might not have
those.

-- 
Fajar


More information about the lxc-users mailing list