summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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, \