diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-08-01 12:39:32 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-08-01 12:39:32 +0000 |
commit | 608b84c859da9f8b1bc2a22236a8db5d5017ee14 (patch) | |
tree | b547eb36289d3b539080480ffaba3fb3e7a797bd | |
parent | 4105f276f636d3d37cecf9b774c226147996ec3e (diff) | |
download | rsyslog-608b84c859da9f8b1bc2a22236a8db5d5017ee14.tar.gz rsyslog-608b84c859da9f8b1bc2a22236a8db5d5017ee14.tar.xz rsyslog-608b84c859da9f8b1bc2a22236a8db5d5017ee14.zip |
support for multiple instances enhanced - still some minor issues
-rw-r--r-- | syslogd.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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, \ |