mirror of
https://github.com/troglobit/finit.git
synced 2026-10-25 12:04:36 +00:00
Expand norespawn grasp to service_retry()
The norespawn hack pause Finit while a developer debugs the system. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+7
@@ -2467,6 +2467,10 @@ static void service_retry(svc_t *svc)
|
||||
int timeout;
|
||||
|
||||
service_timeout_cancel(svc);
|
||||
|
||||
if (is_norespawn())
|
||||
return;
|
||||
|
||||
if (svc->respawn) {
|
||||
dbg("%s crashed/exited, respawning ...", svc_ident(svc, NULL, 0));
|
||||
svc_unblock(svc);
|
||||
@@ -2771,6 +2775,9 @@ restart:
|
||||
if (sm_in_reload())
|
||||
break;
|
||||
|
||||
if (is_norespawn())
|
||||
break;
|
||||
|
||||
/* Don't start if it conflicts with something else already started */
|
||||
if (svc_conflicts(svc)) {
|
||||
logit(svc->nowarn ? LOG_DEBUG : LOG_INFO,
|
||||
|
||||
Reference in new issue
Block a user