diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index 3989cbc7..f3f51ff0 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -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);