Use YAZ log reopen reature on SIGHUP
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Jan 2015 15:48:17 +0000 (16:48 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Jan 2015 15:48:17 +0000 (16:48 +0100)
src/metaproxy_prog.cpp

index dfcea29..a4bb72b 100644 (file)
@@ -260,8 +260,9 @@ static int sc_main(
 
             yaz_sc_running(s);
 
-            yaz_daemon("metaproxy", mode, mode == YAZ_DAEMON_DEBUG ?
-                       work_debug : work_normal, router, pidfile, uid);
+            yaz_daemon("metaproxy", mode | YAZ_DAEMON_LOG_REOPEN,
+                       mode == YAZ_DAEMON_DEBUG ? work_debug : work_normal,
+                       router, pidfile, uid);
         }
         delete router;
     }