diff --git a/system/init.cpp b/system/init.cpp index 6d8d1bb7..7215d45a 100644 --- a/system/init.cpp +++ b/system/init.cpp @@ -143,6 +143,7 @@ static Result try_start_service(Service& service) { if (service.wait_notify) { notifier.hook(); } auto rc = service_child(service, new_stdout, new_stderr, new_stdin); + if (service.wait_notify) { notifier.unhook(); } if (rc.has_error()) { do_errlog("[child %d] failed to start service %s due to error: %s\n", getpid(), service.name.chars(),