summaryrefslogtreecommitdiff
path: root/servicectl
diff options
context:
space:
mode:
Diffstat (limited to 'servicectl')
-rwxr-xr-xservicectl11
1 files changed, 11 insertions, 0 deletions
diff --git a/servicectl b/servicectl
index 1cc3e6f..df96506 100755
--- a/servicectl
+++ b/servicectl
@@ -75,6 +75,15 @@ disable_service () {
fi
}
+status_service () {
+ if [ -n "$S6" ]; then
+ $ROOTCMD s6-rc -a list
+ fi
+ if [ -n "$OPENRC" ]; then
+ $ROOTCMD rc-service status
+ fi
+}
+
## MAIN LOOP
case "$1" in
@@ -112,4 +121,6 @@ case "$1" in
start_service $i
done
;;
+ "status")
+ status_service
esac