summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sh/runscript.sh.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index aaac433..c1930f2 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -46,7 +46,7 @@ describe()
}
# Report status
-status()
+_status()
{
if service_stopping; then
ewarn "status: stopping"
@@ -70,7 +70,7 @@ status()
fi
}
-# Template start / stop functions
+# Template start / stop / status functions
start()
{
[ -n "${command}" ] || return 0
@@ -110,6 +110,11 @@ stop()
eend $? "Failed to stop ${RC_SVCNAME}"
}
+status()
+{
+ _status
+}
+
yesno ${RC_DEBUG} && set -x
_conf_d=${RC_SERVICE%/*}/../conf.d