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:
Joachim Wiberg committed 2025-08-29 10:00:25 +02:00
1 parent 8eab099f09
commit 1b7699ca93
1 file changed
+7
+7
View File
@@ -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,