Re: wait but kill if a max. time was exceeeded

2015-04-24 Thread Peter Pentchev
On Thu, Apr 23, 2015 at 05:45:50PM +0200, Laurent Bercot wrote: On 23/04/2015 17:41, Gorka Lertxundi wrote: I have a very simple question, is it possible in execline to wait up to a maximum amount of time to finish a background program execution? And if it didn't finish, kill it forcibly?

Re: wait but kill if a max. time was exceeeded

2015-04-24 Thread Laurent Bercot
On 24/04/2015 13:28, Peter Pentchev wrote: Oof, thanks a LOT for taking away the opportunity for me to advertise http://devel.ringlet.net/sysutils/timelimit/ :P Sorry about that. :P It's not a very original idea anyway. busybox timeout, for instance, does the same thing. I'm sure there are

Re: s6-rc design ; comparison with anopa

2015-04-24 Thread Laurent Bercot
On that note, one thing you've apparently done/planned is auto-stopping, whereas there is no such thing in anopa. This is because I always felt like while auto-starting can be easily predictable/have expected behavior, things aren't the same when it comes to stopping. That is, start httpd and it

Re: s6-rc design ; comparison with anopa

2015-04-24 Thread Olivier Brunel
On 04/23/15 17:40, Laurent Bercot wrote: (...) Three kinds of services --- Like anopa, s6-rc works internally with two kinds of services: longrun, which is simply defined by a service directory that will be directly managed by s6, and oneshot, which is defined by a