Re: [lxc-users] LXC Slackware Container - runit

2018-09-18 Thread Matteo Bernardini
Il giorno mar 18 set 2018 alle ore 13:30 spaceman ha scritto: > > Hi, > > Matteo Bernardini wrote: > >this is not related to LXC, this behaviour is the same outside of a > >container: you have to use the Slackware standard way to add > >additional services at startup and shutdown. > > >

Re: [lxc-users] LXC Slackware Container - runit

2018-09-18 Thread Serge E. Hallyn
Quoting spaceman (space...@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

Re: [lxc-users] LXC Slackware Container - runit

2018-09-18 Thread spaceman
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. Regards,

Re: [lxc-users] LXC Slackware Container - runit

2018-09-18 Thread spaceman
Hi, Matteo Bernardini wrote: >this is not related to LXC, this behaviour is the same outside of a >container: you have to use the Slackware standard way to add >additional services at startup and shutdown. > >runit_start () { >/usr/bin/runsv /service >} > Yes that works, but try this

Re: [lxc-users] LXC Slackware Container - runit

2018-09-18 Thread Matteo Bernardini
Il giorno lun 17 set 2018 alle ore 19:08 spaceman ha scritto: > > Hi, > > Using a stock LXC Slackware container can anyone tell me why I cannot do > this: > > # /etc/rc.d/rc.local > > /usr/bin/runsvdir /services & > > If I remove the ampersand it runs fine, but with the ampersand it fails > to

Re: [lxc-users] LXC Slackware Container - runit

2018-09-17 Thread Serge E. Hallyn
Quoting spaceman (space...@antispaceman.com): > Hi, > > Using a stock LXC Slackware container can anyone tell me why I cannot do > this: > > # /etc/rc.d/rc.local > > /usr/bin/runsvdir /services & Is it pid 1 doing this? Does it go on to exit? > If I remove the ampersand it runs fine, but