Re: [DNG] Init scripts in packages

2015-08-09 Thread Hendrik Boom
On Sat, Aug 08, 2015 at 02:38:48AM -0500, T.J. Duchene wrote: You could always lift scripts from Wheezy and use them as a template. Or even from jessie, now that Debian jessie in stable. -- hendrik On Sat, Aug 8, 2015 at 2:28 AM, Miles Fidelman mfidel...@meetinghouse.net wrote: T.J.

Re: [DNG] Init scripts in packages

2015-08-08 Thread Jaromil
On 8 August 2015 09:28:42 CEST, Miles Fidelman mfidel...@meetinghouse.net wrote: If, instead, they start removing the sysv scripts, and including homebrew systemd units - then we're in for a mess of rework. both me, Franco and other VUAs are literally aiming to a fork, either after Jessie or

Re: [DNG] Init scripts in packages

2015-08-08 Thread Miles Fidelman
But now we're back into having to have a completely separate package repository, along with a full set of package maintainers. Sigh. T.J. Duchene wrote: You could always lift scripts from Wheezy and use them as a template. On Sat, Aug 8, 2015 at 2:28 AM, Miles Fidelman

Re: [DNG] Init scripts in packages

2015-08-08 Thread Miles Fidelman
Jaromil wrote: On 8 August 2015 09:28:42 CEST, Miles Fidelman mfidel...@meetinghouse.net wrote: If, instead, they start removing the sysv scripts, and including homebrew systemd units - then we're in for a mess of rework. both me, Franco and other VUAs are literally aiming to a fork, either

Re: [DNG] Init scripts in packages

2015-08-08 Thread Rainer Weikusat
Isaac Dunham ibid...@gmail.com writes: On Thu, Aug 06, 2015 at 05:14:28PM +0200, Laurent Bercot wrote: On 06/08/2015 16:31, Isaac Dunham wrote: If differences in environment can cause problems, it's a problem with design. A program that changes what it does just due to differences between

Re: [DNG] Init scripts in packages

2015-08-08 Thread Marlon Nunes
On Sat, 8 Aug 2015 11:03:34 +0200 Jaromil jaro...@dyne.org wrote: Jaromil wrote: Its early to say, but this thread is just prospecting. I believe that on a longer term we can hardly do worse tha Debian when untangling dependencies that right now constantly drag in desktop oriented

Re: [DNG] Init scripts in packages

2015-08-08 Thread Rainer Weikusat
Miles Fidelman mfidel...@meetinghouse.net writes: Rainer Weikusat wrote: [...] Also, to re-iterate this: What an init script needs to do is really only 'start a process'/ 'stop a process'. Most of the other code which crept in there during the last 15 - 20 years will fall into one of two

Re: [DNG] Init scripts in packages

2015-08-08 Thread Miles Fidelman
Jaromil wrote: Jaromil wrote: Its early to say, but this thread is just prospecting. I believe that on a longer term we can hardly do worse tha Debian when untangling dependencies that right now constantly drag in desktop oriented stuff, like avahi and other similar nonsense that we almost got

Re: [DNG] Init scripts in packages

2015-08-08 Thread Isaac Dunham
On Sat, Aug 08, 2015 at 09:43:47AM +0200, Laurent Bercot wrote: On 08/08/2015 03:43, Isaac Dunham wrote: Which, fortunately, is pretty easy to do: I wrote an environment sanitizer yesterday, because I was curious how easily solved that is. Usage is cautenv [-c DIR] [-u] [-x] COMMAND

Re: [DNG] Init scripts in packages

2015-08-08 Thread Steve Litt
On Sat, 08 Aug 2015 09:46:07 +0200 Jaromil jaro...@dyne.org wrote: On 8 August 2015 09:28:42 CEST, Miles Fidelman mfidel...@meetinghouse.net wrote: If, instead, they start removing the sysv scripts, and including homebrew systemd units - then we're in for a mess of rework. both me,

Re: [DNG] Init scripts in packages

2015-08-07 Thread tilt!
Hi, sorry for picking up on this edge while the thread's general discussion has advanced further. The status command matters to me; that is why I would like to address its handling in a more detailed manner. Laurent Bercot wrote on 06/08/2015 at 14:21 CEST: [...] And status. This is very

Re: [DNG] Init scripts in packages

2015-08-07 Thread tilt!
Apologies, a typo: I wrote myself on 07/08/2015 at 15:21 CEST: [...] * the status is failed (the service is *NOT* alive, and this is due to it having failed to start on a previous attempt to do so). My question is, did I understand that correctly? [...] Kind regards.

Re: [DNG] Init scripts in packages

2015-08-07 Thread Laurent Bercot
I'm not sure how systemd does it, but in my vision, there should be two different states for the service: the *wanted* state, and the *current* state. The wanted state is what is set by the administrator when she runs a command such as rc thisrunlevel. The command should set all the services

Re: [DNG] Init scripts in packages

2015-08-07 Thread T.J. Duchene
James Powell Thu, 06 Aug 2015 01:02:56 -0700 Currently Debian packages contains both systemd units and init scripts. However, Debian developers refused to support several init systems. So it's only a matter of time when they remove init scripts from packages.What will Devuan developers do when

Re: [DNG] Init scripts in packages

2015-08-07 Thread Edward Bartolo
is somehow provided. On 07/08/2015, Miles Fidelman mfidel...@meetinghouse.net wrote: Alexey Rochev wrote *Date: *2015-08-05 07:29 -400 *To: *dng *Subject: *[DNG] Init scripts in packages Currently Debian packages contains both systemd units and init scripts. However, Debian developers refused

Re: [DNG] Init scripts in packages

2015-08-07 Thread Rainer Weikusat
Miles Fidelman mfidel...@meetinghouse.net writes: Alexey Rochev wrote *Date: *2015-08-05 07:29 -400 *To: *dng *Subject: *[DNG] Init scripts in packages Currently Debian packages contains both systemd units and init scripts. However, Debian developers refused to support several init systems

Re: [DNG] Init scripts in packages

2015-08-07 Thread Miles Fidelman
Rainer Weikusat wrote: Miles Fidelman mfidel...@meetinghouse.net writes: Alexey Rochev wrote *Date: *2015-08-05 07:29 -400 *To: *dng *Subject: *[DNG] Init scripts in packages Currently Debian packages contains both systemd units and init scripts. However, Debian developers refused to support

Re: [DNG] Init scripts in packages

2015-08-07 Thread Rainer Weikusat
tilt! t...@linuxfoo.de writes: [...] Laurent Bercot wrote on 06/08/2015 at 14:21 CEST: [...] And status. This is very service-dependent: since there is no global API, no service manager, scripts will query the daemon's status in a daemon-specific way. More vagueness again, because status

Re: [DNG] Init scripts in packages

2015-08-07 Thread Rob Owens
- Original Message - From: Rainer Weikusat rainerweiku...@virginmedia.com Miles Fidelman mfidel...@meetinghouse.net writes: Worse, if refuse to support multiple init systems means that the Debian packagers start stripping out the init scripts from Debian packages, those, those

Re: [DNG] Init scripts in packages

2015-08-07 Thread Rainer Weikusat
Miles Fidelman mfidel...@meetinghouse.net writes: Rainer Weikusat wrote: Miles Fidelman mfidel...@meetinghouse.net writes: Alexey Rochev wrote *Date: *2015-08-05 07:29 -400 *To: *dng *Subject: *[DNG] Init scripts in packages Currently Debian packages contains both systemd units and init

Re: [DNG] Init scripts in packages

2015-08-07 Thread Isaac Dunham
On Thu, Aug 06, 2015 at 05:14:28PM +0200, Laurent Bercot wrote: On 06/08/2015 16:31, Isaac Dunham wrote: If differences in environment can cause problems, it's a problem with design. A program that changes what it does just due to differences between the init environment and a login

Re: [DNG] Init scripts in packages

2015-08-07 Thread Miles Fidelman
Rainer Weikusat wrote: Miles Fidelman mfidel...@meetinghouse.net writes: Rainer Weikusat wrote: Miles Fidelman mfidel...@meetinghouse.net writes: Alexey Rochev wrote *Date: *2015-08-05 07:29 -400 *To: *dng *Subject: *[DNG] Init scripts in packages Currently Debian packages contains both

Re: [DNG] Init scripts in packages

2015-08-06 Thread Rainer Weikusat
Rainer Weikusat rainerweiku...@virginmedia.com writes: [...] I'm going to ignore the remainder of this because - while system startup is a topic of some interest to me - people warring over the right way to replace UNIX(*) because it's broken isn't. Since this is maybe/ likely a bit harsh

Re: [DNG] Init scripts in packages

2015-08-06 Thread Rainer Weikusat
Rainer Weikusat rainerweiku...@virginmedia.com writes: Laurent Bercot ska-de...@skarnet.org writes: On 06/08/2015 20:18, Rainer Weikusat wrote: UNIX(*) and therefore, Linux, provides two system calls named fork and exec which can be used to create a new process while inheriting certain parts

Re: [DNG] Init scripts in packages

2015-08-06 Thread Rainer Weikusat
Laurent Bercot ska-de...@skarnet.org writes: On 06/08/2015 20:18, Rainer Weikusat wrote: UNIX(*) and therefore, Linux, provides two system calls named fork and exec which can be used to create a new process while inheriting certain parts of the existing environment and to execute a new program

Re: [DNG] Init scripts in packages

2015-08-06 Thread Philip Lacroix
Am 06.08.2015 17:49 schrieb Steve Litt: Laurent Bercot ska-de...@skarnet.org wrote: I have never said, am not saying, and probably never will say that systemd is any good. It's not, and Lennart and Kay should go back to engineering school, :s/engineering school/kindergarten/ Hell no, that

Re: [DNG] Init scripts in packages

2015-08-06 Thread Laurent Bercot
On 07/08/2015 00:09, Rainer Weikusat wrote: Since this is maybe/ likely a bit harsh Not harsh, just unwilling to accept that I'm actually your ally and not your enemy. I'm not trying to replace Unix, because Unix is not broken - at least, not as far as system startup is concerned. There

Re: [DNG] Init scripts in packages

2015-08-06 Thread Rainer Weikusat
Laurent Bercot ska-de...@skarnet.org writes: A leading remark: This is based on an existing system I have implemented (originally for Debian 5) working in the described way. The code is proprietary as I'm one of those evil guys who want to (and do) write code for a living despite the 'free

Re: [DNG] Init scripts in packages

2015-08-06 Thread Laurent Bercot
On 06/08/2015 20:18, Rainer Weikusat wrote: UNIX(*) and therefore, Linux, provides two system calls named fork and exec which can be used to create a new process while inheriting certain parts of the existing environment and to execute a new program in an existing process, keeping most of the

Re: [DNG] Init scripts in packages

2015-08-06 Thread James Powell
Currently Debian packages contains both systemd units and init scripts. However, Debian developers refused to support several init systems. So it's only a matter of time when they remove init scripts from packages.What will Devuan developers do when it happens? We can use sysvinit and Devuan

Re: [DNG] Init scripts in packages

2015-08-06 Thread Rainer Weikusat
Alexey Rochev equ...@gmail.com writes: Currently Debian packages contains both systemd units and init scripts. However, Debian developers refused to support several init systems. So it's only a matter of time when they remove init scripts from packages. This would rid the world of a lot of

Re: [DNG] Init scripts in packages

2015-08-06 Thread Isaac Dunham
On Thu, Aug 06, 2015 at 02:21:55PM +0200, Laurent Bercot wrote: On 06/08/2015 11:45, tilt! wrote: Thing is, init scripts tend to have problems managing services that do not offer sufficient commandline interfaces as described above There's a simple reason for that: init scripts aren't

Re: [DNG] Init scripts in packages

2015-08-06 Thread Laurent Bercot
On 06/08/2015 16:00, Rainer Weikusat wrote: That's all nice and dandy but it all boils down to 'the code executed by the init script was deficient in some way'. Yes, just like root exploits boil down to the code executed by the suid program was deficient in some way. My point is that you

Re: [DNG] Init scripts in packages

2015-08-06 Thread Daniel Reurich
On 05/08/15 23:29, Alexey Rochev wrote: Currently Debian packages contains both systemd units and init scripts. However, Debian developers refused to support several init systems. So it's only a matter of time when they remove init scripts from packages. What will Devuan developers do when it

Re: [DNG] Init scripts in packages

2015-08-06 Thread Steve Litt
On Thu, 06 Aug 2015 10:28:47 +0100 Rainer Weikusat rainerweiku...@virginmedia.com wrote: But a bare-bones init script does really only three things: 1. Execute a command to start something. 2. Execute a command which stops it again. 3. Execute 2) then 1) for a restart. Those are easy. The

Re: [DNG] Init scripts in packages

2015-08-06 Thread Steve Litt
On Thu, 6 Aug 2015 16:41:38 +0200 Laurent Bercot ska-de...@skarnet.org wrote: I have never said, am not saying, and probably never will say that systemd is any good. It's not, and Lennart and Kay should go back to engineering school, :s/engineering school/kindergarten/ /* Litt ducks and