With 'log' keyword, always log process name

Do not tag log messages with service description, but use process name.
Possibly add :ID later to denote instance if multiple instances exist.

Also, add priority daemon.info log level.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-07-20 19:59:27 +02:00
parent 5b81d14e51
commit fcfbd57ca8
+1 -1
View File
@@ -214,7 +214,7 @@ static int service_start(svc_t *svc)
/* Reset signals */
sig_unblock();
execlp("logger", "logger", "-t", strlen(svc->desc) > 0 ? svc->desc : svc->cmd, NULL);
execlp("logger", "logger", "-t", svc->cmd, "-p", "daemon.info", NULL);
_exit(0);
}