Re: [DNG] Apparently Jessie has runit

2016-01-22 Thread Joel Roth
Rainer Weikusat wrote: > Joel wrote: > > How complicated is it to port such scripts to runit? Exim4's > > init.d script is 275 lines. > > This depends on what you mean by "port", ie, do you just want the start > command, as was suggested elsewhere, or do you want to keep some of the > other

Re: [DNG] Apparently Jessie has runit

2016-01-22 Thread Steve Litt
On Thu, 21 Jan 2016 21:34:31 -1000 Joel Roth wrote: > Steve Litt wrote: > > On Wed, 20 Jan 2016 21:20:26 -1000 > > Joel Roth wrote: > > > > > > Hi Steve, > > > > > > How complicated is it to port such scripts to runit? Exim4's > > > init.d script is 275

Re: [DNG] Apparently Jessie has runit

2016-01-22 Thread Rainer Weikusat
Joel Roth writes: > Steve Litt wrote: >> On Wed, 20 Jan 2016 20:23:10 + >> Rainer Weikusat wrote: >> >> > Steve Litt writes: >> > > People aren't completely alone on run scripts: I can give them any >> > > run

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Mat
On 21/01/16 11:20, Simon Hobson wrote: > Daniel Reurich wrote: > >> perhaps doing the same thing as init-system-helpers dh_systemd package >> to add support for runit into each respective package. > > That's the logical way to do it - the init script(s) should be part

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Simon Hobson
Daniel Reurich wrote: > perhaps doing the same thing as init-system-helpers dh_systemd package > to add support for runit into each respective package. That's the logical way to do it - the init script(s) should be part of the package. The downside of that is the

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Simon Hobson
Rainer Weikusat wrote: >> - Some headers to tell utilities what runlevels the service should run >> at, and dependencies. > > That's a LSB invention. It's a grotesque travesty as it uses 'magic > comments' to embed a declarative mini programming language in an

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Daniel Reurich
> As I mentioned before, I run quite a bunch of Debian servers (wheezy > and jessie) with runit as both process supervisor and init system. > To simplify deployment I wrote small debian packages for my run > scripts. It's definitely not production ready, but it's been working > for me for years.

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Mat
On 20/01/16 20:57, Steve Litt wrote: > People aren't completely alone on run scripts: I can give them any run > scripts I'm using. Also, Runit run scripts are *nothing* like sysvinit > or OpenRC init scripts: Most are five lines or less, few are over 10 > lines. As I mentioned before, I run quite

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Rainer Weikusat
Hendrik Boom writes: > On Thu, Jan 21, 2016 at 09:14:48AM +, Simon Hobson wrote: > >> Rainer Weikusat wrote: >> >> > The sendmail init scripts is 1340 lines long, 901 of which contain code. >> >> I wasn't aware of that, I am inclined

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Simon Hobson
Mat wrote: >> That's the logical way to do it - the init script(s) should be part of the >> package. The downside of that is the requirement for every package >> maintainer (team) to understand and support multiple init systems - or for >> someone supporting an init system

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Hendrik Boom
On Thu, Jan 21, 2016 at 09:14:48AM +, Simon Hobson wrote: > Rainer Weikusat wrote: > > > The sendmail init scripts is 1340 lines long, 901 of which contain code. > > I wasn't aware of that, I am inclined to agree that it sounds "way too much" Presuably

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Joel Roth
Joel Roth wrote: > Steve Litt wrote: > Hi Steve, > > How complicated is it to port such scripts to runit? Exim4's > init.d script is 275 lines. I see there is a library of scripts for runit, although the page seems somewhat stale. For example, exim 3 only.

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Steve Litt
On Wed, 20 Jan 2016 21:20:26 -1000 Joel Roth wrote: > Steve Litt wrote: > > On Wed, 20 Jan 2016 20:23:10 + > > Rainer Weikusat wrote: > > > > > Steve Litt writes: > > > > People aren't completely alone on run

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread KatolaZ
On Thu, Jan 21, 2016 at 06:52:07PM -0500, Steve Litt wrote: [cut] > > Here's pseudocode for the typical Runit run script that runs as root, > doesn't need GUI capabilities, and needs no environment variables: > > = > #!/bin/sh > exec 2>&1 > exec

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Rainer Weikusat
Simon Hobson writes: > Rainer Weikusat wrote: >>> - Some headers to tell utilities what runlevels the service should run >>> at, and dependencies. >> >> That's a LSB invention. It's a grotesque travesty as it uses 'magic >> comments' to

Re: [DNG] Apparently Jessie has runit

2016-01-21 Thread Joel Roth
Steve Litt wrote: > On Wed, 20 Jan 2016 21:20:26 -1000 > Joel Roth wrote: > > > > Hi Steve, > > > > How complicated is it to port such scripts to runit? Exim4's > > init.d script is 275 lines. > > > > Joel > > Hi Joel, > > According to

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread Joel Roth
Steve Litt wrote: > On Wed, 20 Jan 2016 20:23:10 + > Rainer Weikusat wrote: > > > Steve Litt writes: > > > People aren't completely alone on run scripts: I can give them any > > > run scripts I'm using. Also, Runit run scripts are

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread Steve Litt
People aren't completely alone on run scripts: I can give them any run scripts I'm using. Also, Runit run scripts are *nothing* like sysvinit or OpenRC init scripts: Most are five lines or less, few are over 10 lines. SteveT On Wed, 20 Jan 2016 14:31:45 - "dev1fanboy"

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread Rainer Weikusat
Steve Litt writes: > People aren't completely alone on run scripts: I can give them any run > scripts I'm using. Also, Runit run scripts are *nothing* like sysvinit > or OpenRC init scripts: There is no such thing as a "sysvinit init script". The way the sysvinit

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread Simon Hobson
Rainer Weikusat wrote: > The commands which are actually executed via these S- and K-links come > from individual packages and ultimatively contain whatever the people > responsible for that considered sensible. Which is usually a pretty > arbitrary assortment of

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread Rainer Weikusat
Steve Litt writes: > On Wed, 20 Jan 2016 20:23:10 + > Rainer Weikusat wrote: > >> Steve Litt writes: >> > People aren't completely alone on run scripts: I can give them any >> > run scripts I'm using.

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread Steve Litt
On Wed, 20 Jan 2016 21:00:12 + Simon Hobson wrote: > Rainer Weikusat wrote: > > > The commands which are actually executed via these S- and K-links > > come from individual packages and ultimatively contain whatever the > > people

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread Rainer Weikusat
Simon Hobson writes: > Rainer Weikusat wrote: > >> The commands which are actually executed via these S- and K-links come >> from individual packages and ultimatively contain whatever the people >> responsible for that considered sensible.

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread Steve Litt
On Wed, 20 Jan 2016 20:23:10 + Rainer Weikusat wrote: > Steve Litt writes: > > People aren't completely alone on run scripts: I can give them any > > run scripts I'm using. Also, Runit run scripts are *nothing* like > > sysvinit or

Re: [DNG] Apparently Jessie has runit

2016-01-20 Thread dev1fanboy
Yes devuan has it, I was thinking about trying it but I think people are on their own for init scripts with runit. On Wednesday, January 20, 2016 2:31 PM, Steve Litt wrote: > Hi all, > > Apparently Debian Jessie (and therefore I'd assume Devuan Jessie) has > the

[DNG] Apparently Jessie has runit

2016-01-20 Thread Steve Litt
Hi all, Apparently Debian Jessie (and therefore I'd assume Devuan Jessie) has the Runit init system as an option: https://packages.debian.org/es/jessie/runit Obviously, Devuan Jessie should default to sysvinit: There's enough other work to do. That being said, anyone who wants to get familiar