aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-10-27 17:34:29 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-10-27 17:34:29 -0500
commit3fe99c8b8264269dd935d52a1a52581cc0f14e8e (patch)
treeac25accfb9bee5abf8aba9dacee10b4c0f44208e /src
parent27b8183de2f2bfd7411c14c1ec28543ca8a36602 (diff)
supervise-daemon: fix logging for reexec and the child command line
Diffstat (limited to 'src')
-rw-r--r--src/rc/supervise-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c
index bf27ad18..1d0c3407 100644
--- a/src/rc/supervise-daemon.c
+++ b/src/rc/supervise-daemon.c
@@ -161,7 +161,7 @@ static void cleanup(void)
static void re_exec(void)
{
- syslog(LOG_WARNING, "Re-executing supervise-daemon");
+ syslog(LOG_WARNING, "Re-executing for %s", svcname);
execlp("supervise-daemon", "supervise-daemon", "--reexec", (char *) NULL);
syslog(LOG_ERR, "Unable to execute supervise-daemon: %s",
strerror(errno));
@@ -402,7 +402,7 @@ static void child_process(char *exec, char **argv)
strcat(cmdline, " ");
c++;
}
- syslog(LOG_INFO, "Running command line: %s", cmdline);
+ syslog(LOG_INFO, "Child command line: %s", cmdline);
execvp(exec, argv);
#ifdef HAVE_PAM