summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-09-17 10:15:20 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-09-17 10:15:20 +0200
commit735be1e247563d422c18d955530eb8360e706361 (patch)
tree18e8324fa001b4acc6fb2eefe675b439957cc303
parent2288bbb90fc6f51cebf5db81b05c6141e754ef25 (diff)
downloadrsyslog-735be1e247563d422c18d955530eb8360e706361.tar.gz
rsyslog-735be1e247563d422c18d955530eb8360e706361.tar.xz
rsyslog-735be1e247563d422c18d955530eb8360e706361.zip
minor: improved error message when already running
-rw-r--r--tools/syslogd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 56000e08..4964f8fc 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -2437,10 +2437,9 @@ doGlblProcessInit(void)
for (i = 3; i < num_fds; i++)
(void) close(i);
untty();
- }
- else
- {
- fputs(" Already running.\n", stderr);
+ } else {
+ fputs(" Already running. If you want to run multiple instances, you need "
+ "to specify different pid files (use -i option)\n", stderr);
exit(1); /* "good" exit, done if syslogd is already running */
}
}