Re: [systemd-devel] OT: Which tool to use to restart service if check-script fails

2016-05-30 Thread Thomas Güttler
Am 27.05.2016 um 09:40 schrieb Reindl Harald: Am 27.05.2016 um 06:48 schrieb Thomas Güttler: OK, I understand that I need different tool to restart a service if a check-script fails. In my case the check script will be custom code. But the restart stuff is very general and reusable:

Re: [systemd-devel] OT: Which tool to use to restart service if check-script fails

2016-05-27 Thread Reindl Harald
Am 27.05.2016 um 06:48 schrieb Thomas Güttler: OK, I understand that I need different tool to restart a service if a check-script fails. In my case the check script will be custom code. But the restart stuff is very general and reusable: Step1: Call check-script Step2: If exit 0 (meaning

[systemd-devel] OT: Which tool to use to restart service if check-script fails

2016-05-26 Thread Thomas Güttler
OK, I understand that I need different tool to restart a service if a check-script fails. In my case the check script will be custom code. But the restart stuff is very general and reusable: Step1: Call check-script Step2: If exit 0 (meaning service is working), then wait N seconds, got to