Don't block PID 1 waiting for start/stop scripts, fork and forget

No point waiting for SysV start/stop scripts to finish, PID 1 should not
risk getting blocked forever by broken scripts. Instead we fork them off
and forget about them until they terminate. If they are buggy and don't
finish, it's the problem of the admin.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-03-27 16:27:46 +02:00
1 parent 4a90a3e8ef
commit e7b18feca5
1 file changed
-1
-1
View File
@@ -786,7 +786,6 @@ static int service_stop(svc_t *svc)
break;
default:
svc_set_state(svc, SVC_STOPPING_STATE);
rc = WEXITSTATUS(complete(svc->cmd, pid));
break;
}
}