aboutsummaryrefslogtreecommitdiff
path: root/man/supervise-daemon.8
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2018-10-09 17:49:02 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-10-23 13:38:14 -0500
commitc1e582586d398b4452f568240985247294f645ef (patch)
tree5d198ed01618ed89ab04f3ab331597102d03ce99 /man/supervise-daemon.8
parent7a75bfb00c52687a236c92bec78b5e7ab4844701 (diff)
supervise-daemon: add health checks
Health checks are a way to monitor a service and make sure it stays healthy. If a service is not healthy, it will be automatically restarted after running the unhealthy() function to clean up.
Diffstat (limited to 'man/supervise-daemon.8')
-rw-r--r--man/supervise-daemon.89
1 files changed, 9 insertions, 0 deletions
diff --git a/man/supervise-daemon.8 b/man/supervise-daemon.8
index af06ee31..8bcd8b5c 100644
--- a/man/supervise-daemon.8
+++ b/man/supervise-daemon.8
@@ -16,6 +16,10 @@
.Nd starts a daemon and restarts it if it crashes
.Sh SYNOPSIS
.Nm
+.Fl a , -healthcheck-timer
+.Ar seconds
+.Fl A , -healthcheck-delay
+.Ar seconds
.Fl D , -respawn-delay
.Ar seconds
.Fl d , -chdir
@@ -90,6 +94,11 @@ Print the action(s) that are taken just before doing them.
.Pp
The options are as follows:
.Bl -tag -width indent
+.Fl a , -healthcheck-timer Ar seconds
+Run the healthcheck() command, possibly followed by the unhealthy()
+command every time this number of seconds passes.
+.Fl A , -healthcheck-delay Ar seconds
+Wait this long before the first health check.
.It Fl D , -respawn-delay Ar seconds
wait this number of seconds before restarting a daemon after it crashes.
The default is 0.