On Thu, May 26, 2016 at 3:39 PM, Thomas Güttler <[email protected]> wrote: > Am 26.05.2016 um 14:35 schrieb Andrei Borzenkov: >> >> On Thu, May 26, 2016 at 3:18 PM, Thomas Güttler >> <[email protected]> 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. _______________________________________________ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel
