call openlog on startup

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin 2015-04-16 01:54:54 +02:00
parent 9ffec46f73
commit 6c0fa3a8cf

View file

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