Add rc-sstat script

The rc-sstat script is written to display status of s6 services and
run rc-status to display all services status.

This currently only works on Linux.
This commit is contained in:
William Hubbs
2015-06-09 16:19:51 -05:00
parent b209fe3859
commit d2ce07e227
5 changed files with 210 additions and 3 deletions

View File

@@ -1,5 +1,19 @@
MK= ../mk
include ${MK}/os.mk
DIR= ${LIBEXECDIR}/bin
BIN= on_ac_power
INSTALLAFTER = _installafter
ifeq (${OS},Linux)
SRCS+= rc-sstat.in
BIN+= rc-sstat
endif
_installafter:
ifeq (${OS},Linux)
${INSTALL} -d ${DESTDIR}${SBINDIR}
ln -s ${DIR}/rc-sstat ${DESTDIR}/${SBINDIR}/rc-sstat
endif
MK= ../mk
include ${MK}/scripts.mk