From 8c5ff531a1532aaf507eaafb3b1219c312f93a05 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 22 Sep 2018 14:18:52 -0400 Subject: [PATCH] lib: When we can't lock the pid file provide a meaningfull message Give a hint to the end user that the daemon may already be running. Signed-off-by: Donald Sharp --- lib/pid_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pid_output.c b/lib/pid_output.c index b0643c4fe2..f5f7b1d171 100644 --- a/lib/pid_output.c +++ b/lib/pid_output.c @@ -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); } -- 2.39.5