Re: s6-rc setup

2016-02-25 Thread Jan Olszak
I work on a medium-sized embedded system. So far I've done as little as possible in inittab (syslog, getty, mounts) + s6-svscan starts all other stuff. s6-svscan doesn't run with PID 1. It's started in inittab. So can I setup s6-rc + initd and later use s6-linux-init? Would that add any work

Re: s6-rc setup

2016-02-25 Thread Jan Olszak
> > So far I've done as little as possible in inittab (syslog, getty, mounts) >> + s6-svscan starts all other stuff. >> > > You can run your gettys and syslogd under s6 too. :) > > One of the reasons I think I need s6-rc is a race between starting logger and starting the services that need

C API for service management

2016-01-19 Thread Jan Olszak
Hi! I'm developing a daemon that will: - start/stop - send signals - check status of some services. This can be done via s6-svc or s6-svstat but: 1. Can I use the underlying calls from libs6? 2. Is this interface likely to change? Thanks, Jan

Re: C API for service management

2016-01-20 Thread Jan Olszak
Cool, thanks! On Tue, Jan 19, 2016 at 8:34 PM, Laurent Bercot <ska-supervis...@skarnet.org > wrote: > On 19/01/2016 18:44, Jan Olszak wrote: > >> Hi! >> I'm developing a daemon that will: >> - start/stop >> - send signals >> - check status >> of

Re: s6-svscan & SIGPWR

2016-03-15 Thread Jan Olszak
Thanks everybody! We'll go with the BusyBox convention. On Mon, Mar 14, 2016 at 8:07 PM, Laurent Bercot wrote: > On 14/03/2016 19:45, Brian Shore wrote: > >> Alternatively, change LXC's behavior via the configuraiton file. We >> use the following with runit

Re: Fully worked example of an S6 based system?

2016-03-01 Thread Jan Olszak
This might be useful: https://github.com/elebihan/buildroot-s6/ Especially https://github.com/elebihan/buildroot-s6/tree/master/buildroot/package/s6-linux-init-skeleton/files On Tue, Mar 1, 2016 at 4:06 AM, Jeremy Voorhis wrote: > I've been following the list and technology

Problem with s6-softlimit -c

2016-11-23 Thread Jan Olszak
Hi there! I'm solving a core dump issue inside a namespace but I got a problem with s6-softlimit. Command that fails: s6-softlimit -c 1 pwd s6 version: v2.2.3.1 Linux: Kernel 3.4.11. Strace attached. Thanks, Jan

Re: Problem with s6-softlimit -c

2016-11-24 Thread Jan Olszak
Ups, sorry. Here it is. On Thu, Nov 24, 2016 at 12:21 AM, Laurent Bercot < ska-supervis...@skarnet.org> wrote: > Strace attached. >> > > Where? ;) > > -- > Laurent > > # strace s6-softlimit -c 204800 pwd execve("/usr/bin/s6-softlimit", ["s6-softlimit", "-c", "204800", "pwd"], [/* 11 vars