diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-22 14:18:52 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-22 14:18:52 -0400 |
| commit | 8c5ff531a1532aaf507eaafb3b1219c312f93a05 (patch) | |
| tree | 0ee0c0813591f55d2b632ac1326a31a7cc725ba8 /lib/pid_output.c | |
| parent | 42a75fec9d9d430bc175bc0ef3fecf81c8888fb5 (diff) | |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/pid_output.c')
| -rw-r--r-- | lib/pid_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
