mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
Clarify debug messages for respawning daemons/ttys
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+3
-2
@@ -1656,7 +1656,7 @@ static void service_retry(svc_t *svc)
|
||||
|
||||
service_timeout_cancel(svc);
|
||||
if (svc->respawn) {
|
||||
_d("%s crashed, respawning ...", svc->cmd);
|
||||
_d("%s crashed/exited, respawning ...", svc->cmd);
|
||||
svc_unblock(svc);
|
||||
service_step(svc);
|
||||
return;
|
||||
@@ -1853,7 +1853,8 @@ restart:
|
||||
* Restart directly after the first crash,
|
||||
* then retry after 2 sec
|
||||
*/
|
||||
_d("delayed restart of %s", svc->cmd);
|
||||
if (!svc->respawn)
|
||||
_d("delayed restart of %s", svc->cmd);
|
||||
service_timeout_after(svc, 1, service_retry);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user