Add support for multiple instances of the same command

This patch adds support for starting and supervising multiple
services (run, task, or service) using an extra #ID number.

service #1 [2345] /sbin/httpd -f -h /http -p 80   -- Web server
service #2 [2345] /sbin/httpd -f -h /http -p 8080 -- Old web server

Also included in this patch is a fix for endless respawn of faulty
services.  For instance, a buggy daemon that crashes repeatedly will now
be stopped after 10 respawns.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-05-31 01:58:20 +02:00
1 parent 687f52b0b5
commit cb075560ed
8 files changed
+89 -109

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ static void parse_dynamic(char *line, time_t mtime)
{
char *x;
/* Skip comments. */
/* Skip comments, i.e. lines beginning with # */
if (MATCH_CMD(line, "#", x))
return;