Allow user to provide custom status function and still hook into the system one

This commit is contained in:
Roy Marples 2009-04-18 10:39:53 +00:00
parent 657cb3a6eb
commit 802fe9709e

View File

@ -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