aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/rc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 118c2d1c..110591e4 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -683,6 +683,8 @@ do_start_services(const RC_STRINGLIST *start_services, bool parallel)
}
pid = service_start(service->value);
+ if (pid == -1)
+ break;
/* Remember the pid if we're running in parallel */
if (pid > 0) {
add_pid(pid);