aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-applets.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-18 00:09:03 +0000
committerRoy Marples <roy@marples.name>2009-04-18 00:09:03 +0000
commitc9e24a0494dc499728e5131d15a8a16d3fd97c5d (patch)
treecdc7677c88a18556968feb34aa368e445146e9f2 /src/rc/rc-applets.c
parentd4c71415a9514c3d478e6ed110cba72a0d80a378 (diff)
Move status to runscript.sh so init scripts can override it, #159
Return 32 if crashed, #163
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);