diff -r a84792cab21c -r dda91dfa4aa8 thermferm/thermferm.c --- a/thermferm/thermferm.c Mon Aug 25 21:33:57 2014 +0200 +++ b/thermferm/thermferm.c Tue Aug 26 13:50:35 2014 +0200 @@ -735,7 +735,7 @@ if (rdconfig()) { fprintf(stderr, "Error reading configuration\n"); - syslog(LOG_WARNING, "Error reading configuration: halted"); + syslog(LOG_NOTICE, "Error reading configuration: halted"); return 1; } @@ -775,13 +775,13 @@ * associated with that terminal as its control terminal. */ if ((pgrp = setpgid(0, 0)) == -1) { - syslog(LOG_WARNING, "setpgpid failed"); + syslog(LOG_NOTICE, "setpgpid failed"); } frk = fork(); switch (frk) { case -1: - syslog(LOG_WARNING, "Daemon fork failed: %s", strerror(errno)); + syslog(LOG_NOTICE, "Daemon fork failed: %s", strerror(errno)); #ifdef HAVE_WIRINGPI_H stopLCD(); #endif @@ -791,17 +791,17 @@ */ fclose(stdin); if (open("/dev/null", O_RDONLY) != 0) { - syslog(LOG_WARNING, "Reopen of stdin to /dev/null failed"); + syslog(LOG_NOTICE, "Reopen of stdin to /dev/null failed"); _exit(2); } fclose(stdout); if (open("/dev/null", O_WRONLY | O_APPEND | O_CREAT,0600) != 1) { - syslog(LOG_WARNING, "Reopen of stdout to /dev/null failed"); + syslog(LOG_NOTICE, "Reopen of stdout to /dev/null failed"); _exit(2); } fclose(stderr); if (open("/dev/null", O_WRONLY | O_APPEND | O_CREAT,0600) != 2) { - syslog(LOG_WARNING, "Reopen of stderr to /dev/null failed"); + syslog(LOG_NOTICE, "Reopen of stderr to /dev/null failed"); _exit(2); } mypid = getpid(); @@ -844,7 +844,7 @@ float previous_target; if (lockprog((char *)"thermferm")) { - syslog(LOG_WARNING, "Can't lock"); + syslog(LOG_NOTICE, "Can't lock"); return 1; } @@ -861,7 +861,7 @@ #endif if (rc) { fprintf(stderr, "my_devices_loop thread didn't start rc=%d\n", rc); - syslog(LOG_WARNING, "my_devices_loop thread didn't start rc=%d", rc); + syslog(LOG_NOTICE, "my_devices_loop thread didn't start rc=%d", rc); #ifndef HAVE_WIRINGPI_H } else { t++; @@ -875,7 +875,7 @@ #endif if (rc) { fprintf(stderr, "my_server_loop thread didn't start rc=%d\n", rc); - syslog(LOG_WARNING, "my_server_loop thread didn't start rc=%d", rc); + syslog(LOG_NOTICE, "my_server_loop thread didn't start rc=%d", rc); #ifndef HAVE_WIRINGPI_H } else { t++; @@ -886,7 +886,7 @@ rc = piThreadCreate(my_panel_loop); if (rc) { fprintf(stderr, "my_panel_loop thread didn't start rc=%d\n", rc); - syslog(LOG_WARNING, "my_panel_loop thread didn't start rc=%d", rc); + syslog(LOG_NOTICE, "my_panel_loop thread didn't start rc=%d", rc); } #endif @@ -899,7 +899,7 @@ #endif if (rc) { fprintf(stderr, "my_simulator_loop thread didn't start rc=%d\n", rc); - syslog(LOG_WARNING, "my_simulator_loop thread didn't start rc=%d", rc); + syslog(LOG_NOTICE, "my_simulator_loop thread didn't start rc=%d", rc); #ifndef HAVE_WIRINGPI_H } else { t++;