123 openlog("thermferm", LOG_PID|LOG_CONS|LOG_NOWAIT, LOG_USER); |
123 openlog("thermferm", LOG_PID|LOG_CONS|LOG_NOWAIT, LOG_USER); |
124 syslog(LOG_NOTICE, "mbsePi-apps thermferm v%s starting", VERSION); |
124 syslog(LOG_NOTICE, "mbsePi-apps thermferm v%s starting", VERSION); |
125 if (debug) |
125 if (debug) |
126 fprintf(stdout, "mbsePi-apps thermferm v%s starting\n", VERSION); |
126 fprintf(stdout, "mbsePi-apps thermferm v%s starting\n", VERSION); |
127 |
127 |
128 if (rdconfig((char *)"thermferm.xml")) { |
128 if (rdconfig()) { |
129 fprintf(stderr, "Error reading configuration\n"); |
129 fprintf(stderr, "Error reading configuration\n"); |
130 syslog(LOG_NOTICE, "halted"); |
130 syslog(LOG_NOTICE, "halted"); |
131 return 1; |
131 return 1; |
132 } |
132 } |
133 |
133 |