[systemd-devel] Health check for a service managed by systemd

Debraj Manna subharaj.manna at gmail.com
Thu Jul 25 18:38:04 UTC 2019


I have a service on a Ubuntu 16.04 which I use systemctl start, stop,
restart and status to control.

One time the systemctl status returned active, but the application "behind"
the service responded http code different from 200.

So I would like to restart the service when the http code is not 200. Can
some one let me know is there a way to achieve the same via systemd?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190726/258dbcda/attachment.html>


More information about the systemd-devel mailing list