aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-applets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/rc-applets.c')
-rw-r--r--src/rc/rc-applets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c
index 3d6ce90c..bffc9385 100644
--- a/src/rc/rc-applets.c
+++ b/src/rc/rc-applets.c
@@ -295,6 +295,10 @@ static int do_service(int argc, char **argv)
}
ok = rc_service_started_daemon(service, exec, NULL, idx);
+ } else if (strcmp(applet, "service_crashed") == 0) {
+ ok = (_rc_can_find_pids() &&
+ rc_service_daemons_crashed(service) &&
+ errno != EACCES);
} else
eerrorx("%s: unknown applet", applet);