From: John Crispin Date: Wed, 15 Apr 2015 23:54:54 +0000 (+0200) Subject: call openlog on startup X-Git-Url: http://git.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=6c0fa3a8cf9690b2c787f3b8941202e3d2501592 call openlog on startup Signed-off-by: John Crispin --- diff --git a/ubusd.c b/ubusd.c index 8903105..c9cf8b6 100644 --- a/ubusd.c +++ b/ubusd.c @@ -17,6 +17,7 @@ #ifdef FreeBSD #include #endif +#include #include #include #include @@ -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) {