Re: Problem with fdmove

2016-02-15 Thread Jan Olszak
14 21:38 run drwx-- 2 root root 100 Feb 15 10:25 supervise Any other ideas? When is notification-fd opened? Cheers, Jan On Mon, Feb 15, 2016 at 11:20 AM, Laurent Bercot <ska-skaw...@skarnet.org> wrote: > On 15/02/2016 10:55, Jan Olszak wrote: > >> The fdmove 1 3 operation

s6-log run script

2016-03-02 Thread Jan Olszak
Hi! Could anybody help me with a small script in execline. I'm a complete newbe. It's supposed to run s6-log with arguments loaded from a file. If there's no file it's falls back to default arguments. So far I have something like that, but it always runs the default: s6-log T s100 n10

Re: s6-log run script

2016-03-04 Thread Jan Olszak
And this works perfectly. I missed the -D option in backtick. :) Yeah, /opt was just an example. Thanks! On Thu, Mar 3, 2016 at 2:09 AM, Laurent Bercot <ska-skaw...@skarnet.org> wrote: > On 02/03/2016 23:52, Jan Olszak wrote: > >> #!/usr/bin/execlineb -P >> if -n

Re: Inteligent service restart with s6

2016-07-26 Thread Jan Olszak
Thanks! On Mon, Jul 25, 2016 at 3:11 PM, Laurent Bercot <ska-skaw...@skarnet.org> wrote: > On 25/07/2016 14:55, Jan Olszak wrote: > >> Oh, I didn't know about ./finish. Thanks! >> > > http://skarnet.org/software/s6/s6-supervise.html tells you how to get > .

Re: Inteligent service restart with s6

2016-07-25 Thread Jan Olszak
org> wrote: > On 25/07/2016 13:18, Jan Olszak wrote: > >> - Configurable sleep time before service is restarted (configured per >> service) >> - This interval should grow in case of consecutive crashes >> - After multiple crashes the watchdog must try to restart a

Restarting dependant services

2017-07-06 Thread Jan Olszak
Hi! This may be a pretty basic question... I have couple of dependant, longrun services, started with s6-rc-init. ( B depends on A) I need to ensure that if A service is down (crash or exit) all dependant B services will be restarted. Right now if I kill -9 all B services stay alive. How do I