Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -s option to log directly to syslog.
[doldaconnect.git]
/
daemon
/
main.c
diff --git
a/daemon/main.c
b/daemon/main.c
index
299fd0d
..
8a287a0
100644
(file)
--- a/
daemon/main.c
+++ b/
daemon/main.c
@@
-381,7
+381,7
@@
int main(int argc, char **argv)
syslogfac = LOG_DAEMON;
configfile = NULL;
pidfile = NULL;
syslogfac = LOG_DAEMON;
configfile = NULL;
pidfile = NULL;
- while((c = getopt(argc, argv, "p:C:f:hn")) != -1)
+ while((c = getopt(argc, argv, "p:C:f:hn
s
")) != -1)
{
switch(c)
{
{
switch(c)
{
@@
-424,6
+424,9
@@
int main(int argc, char **argv)
case 'n':
nofork = 1;
break;
case 'n':
nofork = 1;
break;
+ case 's':
+ logtosyslog = 1;
+ logtostderr = 0;
case 'h':
case ':':
case '?':
case 'h':
case ':':
case '?':