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:hns")) != -1)
{
switch(c)
{
case 'n':
nofork = 1;
break;
+ case 's':
+ logtosyslog = 1;
+ logtostderr = 0;
case 'h':
case ':':
case '?':
default:
- printf("usage: doldacond [-hn] [-C configfile] [-p pidfile] [-f facility]\n");
+ printf("usage: doldacond [-hns] [-C configfile] [-p pidfile] [-f facility]\n");
exit(c != 'h');
}
}