mirror of
https://github.com/troglobit/finit.git
synced 2026-11-18 19:30:56 +00:00
Clarify debug messages for respawning daemons/ttys
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
685f332c6e
commit
e01836c506
1 file changed
+3
-2
+3
-2
@@ -1656,7 +1656,7 @@ static void service_retry(svc_t *svc)
|
|||||||
|
|
||||||
service_timeout_cancel(svc);
|
service_timeout_cancel(svc);
|
||||||
if (svc->respawn) {
|
if (svc->respawn) {
|
||||||
_d("%s crashed, respawning ...", svc->cmd);
|
_d("%s crashed/exited, respawning ...", svc->cmd);
|
||||||
svc_unblock(svc);
|
svc_unblock(svc);
|
||||||
service_step(svc);
|
service_step(svc);
|
||||||
return;
|
return;
|
||||||
@@ -1853,7 +1853,8 @@ restart:
|
|||||||
* Restart directly after the first crash,
|
* Restart directly after the first crash,
|
||||||
* then retry after 2 sec
|
* 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);
|
service_timeout_after(svc, 1, service_retry);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user