mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +00:00
Clean up logging, log to stderr until syslogd has started
This patch removes internal logging macros and adds support for logging to stderr until a syslogd is up and running, i.e. /dev/log appears. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
77561b6071
commit
d670e7d3e8
7 files changed
+57
-41
No files matched your search
@@ -685,7 +685,7 @@ void service_monitor(pid_t lost)
|
||||
snprintf(pidfile, sizeof(pidfile), "%s%s.pid", _PATH_VARRUN, basename(svc->cmd));
|
||||
if (remove(pidfile)) {
|
||||
if (errno != ENOENT)
|
||||
FLOG_PERROR("Failed removing service %s pidfile %s", basename(svc->cmd), pidfile);
|
||||
logit(LOG_CRIT, "Failed removing service %s pidfile %s", basename(svc->cmd), pidfile);
|
||||
}
|
||||
|
||||
/* No longer running, update books. */
|
||||
|
||||
Reference in new issue
Block a user