Re: Runit questions

2016-10-13 Thread Andy Mender
I was recently trying to convert my OpenRC-based Gentoo installation into one based on runit. However, I noticed that it's quite easy to send runsvdir or runsvchdir into an infinite loop when there is something wrong with a service directory or the runlevel dir selected through runsvchdir is missin

Re: Runit questions

2016-10-13 Thread Steve Litt
On Thu, 13 Oct 2016 12:16:52 +0200 Andy Mender wrote: > I was recently trying to convert my OpenRC-based Gentoo installation > into one based on runit. However, I noticed that it's quite easy to > send runsvdir or runsvchdir into an infinite loop when there is > something wrong with a service dir

Re: Runit questions

2016-10-13 Thread Avery Payne
On Tue, Oct 11, 2016 at 3:09 PM, Andy Mender wrote: > Hello again, > > I'm rewriting some of the standard sysvinit and openrc scripts to ./run > scripts > I would look around a bit. There are little pockets of pre-written scripts out there, you just need to dig them up. Some of the scripts on

experiment: making a shim for SysV-styled installs using rc scripts

2016-10-13 Thread Avery Payne
I know some people will cringe a bit, but hear me out. There are still lots of older installs out there, but none of them will give you a true supervisor when you start a service. The scripts basically start the daemon, make a note of its PID, and then assume it's still running. What if you coul