fix issue with --reexec call

This commit is contained in:
William Hubbs 2017-10-30 18:21:39 -05:00
parent 913b2ca537
commit a3d1c8a0e7

View File

@ -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);