summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-08-01 12:39:32 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-08-01 12:39:32 +0000
commit608b84c859da9f8b1bc2a22236a8db5d5017ee14 (patch)
treeb547eb36289d3b539080480ffaba3fb3e7a797bd /syslogd.c
parent4105f276f636d3d37cecf9b774c226147996ec3e (diff)
downloadrsyslog-608b84c859da9f8b1bc2a22236a8db5d5017ee14.tar.gz
rsyslog-608b84c859da9f8b1bc2a22236a8db5d5017ee14.tar.xz
rsyslog-608b84c859da9f8b1bc2a22236a8db5d5017ee14.zip
support for multiple instances enhanced - still some minor issues
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c9
1 files 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, \