mirror of
https://github.com/troglobit/finit.git
synced 2026-10-20 11:19:35 +00:00
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:
1 parent
5b81d14e51
commit
fcfbd57ca8
1 file changed
+1
-1
@@ -214,7 +214,7 @@ static int service_start(svc_t *svc)
|
|||||||
/* Reset signals */
|
/* Reset signals */
|
||||||
sig_unblock();
|
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);
|
_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user