From 608b84c859da9f8b1bc2a22236a8db5d5017ee14 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 1 Aug 2005 12:39:32 +0000 Subject: support for multiple instances enhanced - still some minor issues --- syslogd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/syslogd.c b/syslogd.c index 694222a6..7b9bc857 100644 --- a/syslogd.c +++ b/syslogd.c @@ -2200,7 +2200,7 @@ int main(argc, argv) funix[i] = -1; } - while ((ch = getopt(argc, argv, "a:dhf:l:m:nop:rs:t:v")) != EOF) + while ((ch = getopt(argc, argv, "a:dhi:f:l:m:nop:rs:t:v")) != EOF) switch((char)ch) { case 'a': if (nfunix < MAXFUNIX) @@ -2217,6 +2217,9 @@ int main(argc, argv) case 'h': NoHops = 0; break; + case 'i': /* pid file name */ + PidFile = optarg; + break; case 'l': if (LocalHosts) { fprintf (stderr, "Only one -l argument allowed," \ @@ -2410,7 +2413,7 @@ int main(argc, argv) { dprintf("Debugging disabled, SIGUSR1 to turn on debugging.\n"); /* DEBUG-AID/RELEASE: comment out line below if you need that */ - debugging_on = 0; + debugging_on = 1; } /* * Send a signal to the parent to it can terminate. @@ -4615,7 +4618,7 @@ void init() ochPrintList(); } - if ( AcceptRemote ) + if ( AcceptRemote ) logmsgInternal(LOG_SYSLOG|LOG_INFO, "rsyslogd: [origin software=\"rsyslogd\" " \ "swVersion=\"" VERSION "." PATCHLEVEL "\"]" \ " restart (remote reception)." , LocalHostName, \ -- cgit