Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #179952

Re: If Linux Is About Choice, Why Then ...

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: If Linux Is About Choice, Why Then ...
Date 2017-04-10 15:40 +0200
Message-ID <tuHHX-1fe-7@gated-at.bofh.it> (permalink)
References (2 earlier) <ttNmq-76Q-23@gated-at.bofh.it> <ttQNj-YJ-3@gated-at.bofh.it> <ttSP7-2eC-7@gated-at.bofh.it> <tu7XQ-3pp-5@gated-at.bofh.it> <tufLH-8mc-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Apr 09, 2017 at 08:41:28AM +0100, Joe wrote:
> Someone correct me if I'm wrong, but I run sid and see things come and
> go. Didn't we have this:
> 
> https://wiki.debian.org/LSBInitScripts
> 
>    long before systemd?

This and start-stop-daemon and probably a few other things are all
hacks that were layered on top of sysvinit, in an attempt to work around
its limitations and produce some kind of management system.

Ultimately, all of these hacks are fragile and doomed to failure.
The basic design concept of sysvinit is that you launch a daemon in
the background and record its PID in a file on disk.  Later, if you want
to stop it, or see if it's still running, you open up this PID file,
read the PID from it, and ask the kernel about the process with that ID.

Sounds OK, right?  At least, if don't have much experience with system
administration.

The problem is, PIDs get recycled.  If the daemon died 17 days ago, and
something else came along and used that PID, the sysvinit approach of
checking that the PID is still running will give the wrong result.

Add to that the very real problem of the legacy behavior of daemons that
originated in the 1980s: they double-fork themselves into the background,
on purpose.  This severs their tie to the parent process.  That means
you can't even *get* the PID of the actual daemon from the outside.
The daemon itself has to discover its *own* PID and write that to a PID
file.  And your init structure has to rely on that somehow?  That's what
the start-stop-daemon hack was introduced to try to work around, by
the way.

Hacks on top of hacks to work around hacks.  That's sysvinit.  It is not
salvageable.

Does that mean systemd is the ideal replacement?  No.  Systemd has these
overreaching tendrils in places it's got no business sticking tendrils.
Why does it have its own ntp daemon?  Why does it implement file system
automount behavior?  These things already exist as userspace processes.
Mature, trusted userspace processes, sometimes with multiple competing
alternatives already.

But then on the other hand, what else would you use instead of systemd?
Nobody has proposed a superior alternative yet, that I've seen.

So, IMHO, the best thing to do is to use systemd, but don't use any of
its optional intrusive tendrils.  Other people have other opinions, and
that's awesome.  A healthy, vigorous competitive environment benefits
all of us.

My wheezy servers use wheezy's sysvinit + daemontools.  My locally
installed services are managed by daemontools.  Debian's services are
managed by sysvinit.

On my jessie machines, I have systemd (with its syvinit compat layer)
plus daemontools, started as a systemd service.  I'm slowly transitioning
my local stuff from daemontools to systemd services, but I am in no hurry
to do so.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

If Linux Is About Choice, Why Then ... David Niklas <doark@mail.com> - 2017-04-07 20:50 +0200
  Re: If Linux Is About Choice, Why Then ... David Niklas <doark@mail.com> - 2017-04-07 22:10 +0200
  Re: If Linux Is About Choice, Why Then ... Patrick Bartek <nemommxiv@gmail.com> - 2017-04-08 03:30 +0200
    Re: If Linux Is About Choice, Why Then ... Richard Owlett <rowlett@cloud85.net> - 2017-04-08 07:10 +0200
      Re: If Linux Is About Choice, Why Then ... <tomas@tuxteam.de> - 2017-04-08 09:20 +0200
        Re: If Linux Is About Choice, Why Then ... Nicolas George <george@nsup.org> - 2017-04-08 11:10 +0200
          Re: If Linux Is About Choice, Why Then ... <tomas@tuxteam.de> - 2017-04-08 22:30 +0200
        Re: If Linux Is About Choice, Why Then ... Martin Read <zen75502@zen.co.uk> - 2017-04-08 11:50 +0200
          Re: If Linux Is About Choice, Why Then ... Nicolas George <george@nsup.org> - 2017-04-08 12:00 +0200
            Re: If Linux Is About Choice, Why Then ... The Wanderer <wanderer@fastmail.fm> - 2017-04-08 13:00 +0200
            Re: If Linux Is About Choice, Why Then ... <tomas@tuxteam.de> - 2017-04-08 22:40 +0200
        Re: If Linux Is About Choice, Why Then ... Mart van de Wege <mvdwege@gmail.com> - 2017-04-08 15:20 +0200
        Re: If Linux Is About Choice, Why Then ... Joel Rees <joel.rees@gmail.com> - 2017-04-09 01:30 +0200
          Re: If Linux Is About Choice, Why Then ... Joe <joe@jretrading.com> - 2017-04-09 09:50 +0200
            Re: If Linux Is About Choice, Why Then ... Greg Wooledge <wooledg@eeg.ccf.org> - 2017-04-10 15:40 +0200
              Re: If Linux Is About Choice, Why Then ... <tomas@tuxteam.de> - 2017-04-10 16:10 +0200
                Re: If Linux Is About Choice, Why Then ... Nicolas George <george@nsup.org> - 2017-04-10 16:20 +0200
                Re: If Linux Is About Choice, Why Then ... <tomas@tuxteam.de> - 2017-04-10 16:30 +0200
                Re: If Linux Is About Choice, Why Then ... Nicolas George <george@nsup.org> - 2017-04-10 16:40 +0200
                Re: If Linux Is About Choice, Why Then ... tomas@tuxteam.de - 2017-04-10 21:10 +0200
                Re: If Linux Is About Choice, Why Then ... Joel Rees <joel.rees@gmail.com> - 2017-04-11 02:20 +0200
                Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-10 23:30 +0200
                Re: If Linux Is About Choice, Why Then ... deloptes <deloptes@gmail.com> - 2017-04-10 23:40 +0200
                Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-11 16:40 +0200
                Re: If Linux Is About Choice, Why Then ... David Wright <deblis@lionunicorn.co.uk> - 2017-04-12 17:40 +0200
                Re: If Linux Is About Choice, Why Then ... David Wright <deblis@lionunicorn.co.uk> - 2017-04-12 17:30 +0200
                Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-12 18:50 +0200
                Re: If Linux Is About Choice, Why Then ... David Wright <deblis@lionunicorn.co.uk> - 2017-04-12 21:50 +0200
                Re: If Linux Is About Choice, Why Then ... Lisi Reisz <lisi.reisz@gmail.com> - 2017-04-13 00:00 +0200
                Re: If Linux Is About Choice, Why Then ... Ric Moore <wayward4now@gmail.com> - 2017-04-12 22:50 +0200
                Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-13 00:50 +0200
                Re: If Linux Is About Choice, Why Then ... Lisi Reisz <lisi.reisz@gmail.com> - 2017-04-13 02:20 +0200
                Re: If Linux Is About Choice, Why Then ... Ric Moore <wayward4now@gmail.com> - 2017-04-13 08:50 +0200
                Re: If Linux Is About Choice, Why Then ... Jonathan Dowland <jmtd@debian.org> - 2017-04-13 11:00 +0200
                Re: If Linux Is About Choice, Why Then ... Mart van de Wege <mvdwege@gmail.com> - 2017-04-12 22:50 +0200
                Re: If Linux Is About Choice, Why Then ... Ric Moore <wayward4now@gmail.com> - 2017-04-12 23:20 +0200
                Re: If Linux Is About Choice, Why Then ... Jonathan Dowland <jmtd@debian.org> - 2017-04-12 23:20 +0200
                Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-13 01:20 +0200
                Re: If Linux Is About Choice, Why Then ... Nicholas Geovanis <nickgeovanis@gmail.com> - 2017-04-13 02:00 +0200
                Re: If Linux Is About Choice, Why Then ... Mart van de Wege <mvdwege@gmail.com> - 2017-04-12 22:50 +0200
                Re: If Linux Is About Choice, Why Then ... David Wright <deblis@lionunicorn.co.uk> - 2017-04-13 01:00 +0200
                Re: If Linux Is About Choice, Why Then ... Joel Rees <joel.rees@gmail.com> - 2017-04-11 02:20 +0200
              Re: If Linux Is About Choice, Why Then ... Joel Rees <joel.rees@gmail.com> - 2017-04-11 02:10 +0200
                Re: If Linux Is About Choice, Why Then ... Joel Rees <joel.rees@gmail.com> - 2017-04-11 05:40 +0200
              Re: If Linux Is About Choice, Why Then ... Ric Moore <wayward4now@gmail.com> - 2017-04-11 03:40 +0200
                Re: If Linux Is About Choice, Why Then ... Miles Fidelman <mfidelman@meetinghouse.net> - 2017-04-11 05:10 +0200
          Re: If Linux Is About Choice, Why Then ... <tomas@tuxteam.de> - 2017-04-09 12:30 +0200
            Re: If Linux Is About Choice, Why Then ... Joel Rees <joel.rees@gmail.com> - 2017-04-09 20:10 +0200
      Re: If Linux Is About Choice, Why Then ... Ric Moore <wayward4now@gmail.com> - 2017-04-11 03:10 +0200
        Re: If Linux Is About Choice, Why Then ... Richard Owlett <rowlett@cloud85.net> - 2017-04-11 15:00 +0200
          Re: If Linux Is About Choice, Why Then ... Lisi Reisz <lisi.reisz@gmail.com> - 2017-04-11 15:20 +0200
            Re: If Linux Is About Choice, Why Then ... Richard Owlett <rowlett@cloud85.net> - 2017-04-11 17:10 +0200
  Re: If Linux Is About Choice, Why Then ... Michael Fothergill <michael.fothergill@gmail.com> - 2017-04-09 17:50 +0200
    Re: If Linux Is About Choice, Why Then ... Patrick Bartek <nemommxiv@gmail.com> - 2017-04-09 22:20 +0200
      Re: If Linux Is About Choice, Why Then ... Miles Fidelman <mfidelman@meetinghouse.net> - 2017-04-09 23:50 +0200
        Re: If Linux Is About Choice, Why Then ... Lisi Reisz <lisi.reisz@gmail.com> - 2017-04-10 00:20 +0200
        Re: If Linux Is About Choice, Why Then ... Patrick Bartek <nemommxiv@gmail.com> - 2017-04-10 08:10 +0200
          Re: If Linux Is About Choice, Why Then ... <tomas@tuxteam.de> - 2017-04-10 09:40 +0200
          Re: If Linux Is About Choice, Why Then ... Miles Fidelman <mfidelman@meetinghouse.net> - 2017-04-10 16:30 +0200
          Re: If Linux Is About Choice, Why Then ... Jonathan Dowland <jmtd@debian.org> - 2017-04-12 11:40 +0200
            Re: If Linux Is About Choice, Why Then ... Patrick Bartek <nemommxiv@gmail.com> - 2017-04-12 18:20 +0200
              Re: If Linux Is About Choice, Why Then ... Jonathan Dowland <jmtd@debian.org> - 2017-04-12 23:10 +0200
                Re: If Linux Is About Choice, Why Then ... Reco <recoverym4n@gmail.com> - 2017-04-13 17:50 +0200
                Re: If Linux Is About Choice, Why Then ... Jonathan Dowland <jmtd@debian.org> - 2017-04-13 19:40 +0200
                Re: If Linux Is About Choice, Why Then ... Reco <recoverym4n@gmail.com> - 2017-04-14 14:00 +0200
                Re: If Linux Is About Choice, Why Then ... Jonathan Dowland <jmtd@debian.org> - 2017-04-17 23:40 +0200
                Re: If Linux Is About Choice, Why Then ... Reco <recoverym4n@gmail.com> - 2017-04-18 16:40 +0200
                Re: If Linux Is About Choice, Why Then ... Jonathan Dowland <jmtd@debian.org> - 2017-04-18 17:10 +0200
                Re: If Linux Is About Choice, Why Then ... Gene Heskett <gheskett@shentel.net> - 2017-04-18 17:50 +0200
                Re: If Linux Is About Choice, Why Then ... Joel Rees <joel.rees@gmail.com> - 2017-04-20 02:20 +0200
                Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-21 16:40 +0200
                Re: If Linux Is About Choice, Why Then ... Reco <recoverym4n@gmail.com> - 2017-04-18 18:50 +0200
                Re: If Linux Is About Choice, Why Then ... <tomas@tuxteam.de> - 2017-04-20 12:00 +0200
                Re: If Linux Is About Choice, Why Then ... Jonathan Dowland <jmtd@debian.org> - 2017-04-20 12:00 +0200
                Debian contributor Register of Interests (was Re: If Linux Is About  Choice, Why Then ...) Jonathan Dowland <jmtd@debian.org> - 2017-05-09 17:00 +0200
                Re: Debian contributor Register of Interests (was Re: If Linux Is  About Choice, Why Then ...) <tomas@tuxteam.de> - 2017-05-09 21:10 +0200
                Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-18 17:40 +0200
                Re: If Linux Is About Choice, Why Then ... Ben Caradoc-Davies <ben@transient.nz> - 2017-04-18 23:30 +0200
      Re: If Linux Is About Choice, Why Then ... Michael Fothergill <michael.fothergill@gmail.com> - 2017-04-11 18:10 +0200
  Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-13 03:10 +0200
    Re: If Linux Is About Choice, Why Then ... Joel Rees <joel.rees@gmail.com> - 2017-04-13 03:40 +0200
      Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-13 11:00 +0200
    Re: If Linux Is About Choice, Why Then ... David Wright <deblis@lionunicorn.co.uk> - 2017-04-13 04:20 +0200
      Re: If Linux Is About Choice, Why Then ... Joe <joe@jretrading.com> - 2017-04-13 09:20 +0200
    Re: If Linux Is About Choice, Why Then ... Catherine Gramze <rhiamom@mac.com> - 2017-04-13 04:20 +0200
      Re: If Linux Is About Choice, Why Then ... GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-04-13 11:30 +0200
        Re: If Linux Is About Choice, Why Then ... Catherine Gramze <rhiamom@mac.com> - 2017-04-13 17:20 +0200

csiph-web