logfd;
opterr = 0;
- while((i=getopt(argn,argv,"dD:p:P:wh")) != EOF) {
+ while((i=getopt(argn,argv,"dD:l:p:P:wh")) != EOF) {
switch(i) {
case 'd':
daemonize = true;
case 'D':
dbdir = strdup(optarg);
break;
+ case 'l':
+ logfile = strdup(optarg);
+ break;
case 'p':
pidfile = strdup(optarg);
break;