[lxc-users] LXC Slackware Container - runit

Serge E. Hallyn serge at hallyn.com
Tue Sep 18 17:18:04 UTC 2018


Quoting spaceman (spaceman at antispaceman.com):
> Serge E. Hallyn wrote:
> 
> Hi,
> 
> >> # /etc/rc.d/rc.local
> >> 
> >> /usr/bin/runsvdir /services &
> >
> >Is it pid 1 doing this?  Does it go on to exit?
> >
> 
> pid 1 for the container is init which sets off the boot process and
> operates normally and doesn't exit. Don't really understand the
> question.

"pid 1 sets off the boot process" != "pid 1 forks+execs
 /usr/bin/runsvdir /services & and then exits".

If the latter happens, then you'll need to have pid 1 stick around
somehow.  When pid 1 exits, the container gets killed.


More information about the lxc-users mailing list