diff options
author | Ben Pfaff <blp@nicira.com> | 2011-03-29 10:09:23 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-03-29 10:09:23 -0700 |
commit | 2159de839136af40641738284c7eabde1b0fc72b (patch) | |
tree | e5f6abc7b151be97fad2b0d7ee14566a9ad171c6 /lib/daemon.c | |
parent | 0dd17bfdfed067cd15f764a5c741625c4c118ac8 (diff) |
daemon: Write "already running" message to log also.
Otherwise it's hard to diagnose later if the daemon failed to start because
it thinks that it is already running.
Diffstat (limited to 'lib/daemon.c')
-rw-r--r-- | lib/daemon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/daemon.c b/lib/daemon.c index 2f6f0819..17ec9f5e 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -171,6 +171,8 @@ die_if_already_running(void) pid_t pid = already_running(); if (pid) { if (!overwrite_pidfile) { + VLOG_ERR("%s: %s already running as pid %ld, aborting", + get_pidfile(), program_name, (long int) pid); ovs_fatal(0, "%s: already running as pid %ld", get_pidfile(), (long int) pid); } else { |