fix issue with --reexec call
This commit is contained in:
parent
913b2ca537
commit
a3d1c8a0e7
@ -162,7 +162,8 @@ static void cleanup(void)
|
||||
static void re_exec(void)
|
||||
{
|
||||
syslog(LOG_WARNING, "Re-executing for %s", svcname);
|
||||
execlp("supervise-daemon", "supervise-daemon", "--reexec", (char *) NULL);
|
||||
execlp("supervise-daemon", "supervise-daemon", svcname, "--reexec",
|
||||
(char *) NULL);
|
||||
syslog(LOG_ERR, "Unable to execute supervise-daemon: %s",
|
||||
strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
|
Loading…
Reference in New Issue
Block a user