:: Re: [DNG] Keeping services running:…
Top Page
Delete this message
Reply to this message
Author: Martin Steigerwald
Date:  
To: dng
Subject: Re: [DNG] Keeping services running: was tiny service state api [WAS: Fwd: init system agnosticism]
Steve Litt - 14.04.17, 12:07:
> On Fri, 14 Apr 2017 13:56:32 +0000
>
> Daniel Abrecht <dng@???> wrote:
> > Hi
> >
> > From my point of view, systemd always tries to keep services running,
> > no matter how hard they fail, and to mask possible problems when
> > starting a service, so the service maintainers don't have to fix
> > their service, which is really unfortunate.
>
> If you don't like that aspect of systemd, you're REALLY going to hate
> runit, which always restarts crashed/ended daemons. I think sysvinit or
> OpenRC would be more to your taste.
>
> That being said, runit has the option of using a ./finish script, which
> could report the malfunction and set a filesystem flag to prevent the
> service being run again. But that's kinda kludgy.
>
> By the way, I think systemd has the option of not rerunning.


systemd doesn´t restart services by default AFAIK. It does so when you add an
option to do that to the service file, like in RHEL 7 for SSH daemon with an
interval of 42 seconds.

Thanks,
--
Martin