#ifdef FreeBSD
#include <sys/param.h>
#endif
+#include <syslog.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
signal(SIGPIPE, SIG_IGN);
+ openlog("ubusd", LOG_PID, LOG_DAEMON);
uloop_init();
while ((ch = getopt(argc, argv, "s:")) != -1) {