From 3673040722b75c0a4d06fbeb272f917c7d1ea7c4 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 9 May 2017 18:20:52 -0500 Subject: 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. --- sh/supervise-daemon.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'sh') 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 \ -- cgit v1.2.3