mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +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;
|
break;
|
||||||
|
|
||||||
case SVC_SETUP_STATE:
|
case SVC_SETUP_STATE:
|
||||||
|
if (!enabled) {
|
||||||
|
service_stop(svc);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (!svc->pid) {
|
if (!svc->pid) {
|
||||||
int rc = WEXITSTATUS(svc->status);
|
int rc = WEXITSTATUS(svc->status);
|
||||||
int ok = WIFEXITED(svc->status);
|
int ok = WIFEXITED(svc->status);
|
||||||
|
|||||||
Reference in new issue
Block a user