[systemd-devel] check to see if service is still alive

Jóhann B. Guðmundsson johannbg at gmail.com
Thu May 26 14:07:30 UTC 2016


On 05/26/2016 01:15 PM, Lennart Poettering wrote:

> On Thu, 26.05.16 14:39, Thomas Güttler (guettliml at thomas-guettler.de) wrote:
>
>> >Am 26.05.2016 um 14:35 schrieb Andrei Borzenkov:
>>> > >On Thu, May 26, 2016 at 3:18 PM, Thomas Güttler
>>> > ><guettliml at thomas-guettler.de>  wrote:
>>>> > >>I want to know if the service is alive,
>>> > >
>>> > >Define "service is alive".
>> >
>> >the service is alive if a custom check method has the exit status of 0
> That's out of the scope for systemd really. That's monitoring, and I
> am not convinced having custom check function support in systemd is
> really appropriate, this should be implemented outside of systemd
> really.

Administrators usually create type timer units which are bound to 
relevant type service unit and is run on periodic interval and checks if 
the service responses and restarts it if it's not for those use cases 
where the daemon/service is in some limbo state and not responding for 
whatever reason ( that is if they dont have any monitoring system like 
zenoss or nagios etc that does that for them ).

JBG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160526/d6961479/attachment-0001.html>


More information about the systemd-devel mailing list