Moved to syslog for the dispense log
[tpg/opendispense2.git] / src / server / main.c
index 8abb984..b23cee4 100644 (file)
@@ -17,6 +17,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <stdarg.h>
+#include <syslog.h>
 
 // === IMPORTS ===
 extern void    Init_Cokebank(const char *Argument);    // cokebank.c
@@ -82,6 +83,8 @@ int main(int argc, char *argv[])
        
        signal(SIGINT, sigint_handler);
        
+       openlog("odispense2", 0, LOG_LOCAL4);
+       
        Init_Cokebank(gsCokebankPath);
 
        Init_Handlers();

UCC git Repository :: git.ucc.asn.au