diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-05-09 18:20:52 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-05-09 18:30:08 -0500 |
commit | 3673040722b75c0a4d06fbeb272f917c7d1ea7c4 (patch) | |
tree | 1329fd5b6e8354c41d56c239f1f7d1127fc0dc28 /sh | |
parent | 96c8ba2fb5f91a711ef5bfcfd8affe0b74ad18fe (diff) |
supervise-daemon: add a --respawn-limit option
Allow limiting the number of times supervise-daemon will attempt to respawn a
daemon once it has died to prevent infinite respawning. Also, set a
reasonable default limit (10 times in a 5 second period).
This is for issue #126.
Diffstat (limited to 'sh')
-rw-r--r-- | sh/supervise-daemon.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/supervise-daemon.sh b/sh/supervise-daemon.sh index bff68a4c..c6130edb 100644 --- a/sh/supervise-daemon.sh +++ b/sh/supervise-daemon.sh @@ -25,6 +25,7 @@ supervise_start() eval supervise-daemon --start \ ${chroot:+--chroot} $chroot \ ${pidfile:+--pidfile} $pidfile \ + ${respawn_limit:+--respawn-limit} $respawn_limit \ ${command_user+--user} $command_user \ $supervise_daemon_args \ $command \ |