char *identname = NULL; /* program name for syslog */
char *pidfilename = NULL; /* pid file location */
+char *controlfilename = NULL; /* pid file location */
char *logfilename = NULL; /* log file location */
char **g_argv; /* a copy of the cmdline arguments */
if(!pidfilename)
asprintf(&pidfilename, LOCALSTATEDIR "/run/%s.pid", identname);
+ asprintf(&controlfilename, LOCALSTATEDIR "/run/%s.control", identname);
+
if(!logfilename)
asprintf(&logfilename, LOCALSTATEDIR "/log/%s.log", identname);
if(!read_server_config())
return 1;
- if(event_init() < 0) {
+ if(!event_init()) {
logger(LOG_ERR, _("Error initializing libevent!"));
return 1;
}