diff options
Diffstat (limited to 'servicectl')
-rwxr-xr-x | servicectl | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |