[systemd-devel] check to see if service is still alive
Andrei Borzenkov
arvidjaar at gmail.com
Thu May 26 12:49:35 UTC 2016
On Thu, May 26, 2016 at 3:39 PM, 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
>
>
systemd does not support adding custom checks. What you can do, is to
split your service in two programs - one that does custom check and
interacts with systemd and another that implements real service. Real
service could then be started by wrapper or in ExecStartPre.
More information about the systemd-devel
mailing list