mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Fix #432: allow services in 'setup' to be stopped
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+5
@@ -2571,6 +2571,11 @@ restart:
|
||||
break;
|
||||
|
||||
case SVC_SETUP_STATE:
|
||||
if (!enabled) {
|
||||
service_stop(svc);
|
||||
break;
|
||||
}
|
||||
|
||||
if (!svc->pid) {
|
||||
int rc = WEXITSTATUS(svc->status);
|
||||
int ok = WIFEXITED(svc->status);
|
||||
|
||||
Reference in new issue
Block a user