]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: When we can't lock the pid file provide a meaningfull message
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 22 Sep 2018 18:18:52 +0000 (14:18 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 22 Sep 2018 18:18:52 +0000 (14:18 -0400)
Give a hint to the end user that the daemon may already be running.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/pid_output.c

index b0643c4fe289c463207879c497714cb12ff477ef..f5f7b1d17172bc822ac8ed5339c69526d9db28dd 100644 (file)
@@ -60,7 +60,7 @@ pid_t pid_output(const char *path)
 
                if (fcntl(fd, F_SETLK, &lock) < 0) {
                        flog_err_sys(EC_LIB_SYSTEM_CALL,
-                                    "Could not lock pid_file %s (%s), exiting",
+                                    "Could not lock pid_file %s (%s), exiting.  Please ensure that the daemon is not already running",
                                     path, safe_strerror(errno));
                        exit(1);
                }