diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-06-09 16:19:51 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-06-10 18:45:29 -0500 |
commit | d2ce07e227ec95370e8aee5f1199edc6ad61aff9 (patch) | |
tree | 0bd2299b11b978d8dae35be53421c343e8314386 /scripts/Makefile | |
parent | b209fe3859c05c286037843bb34058f849c54b15 (diff) |
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.
Diffstat (limited to 'scripts/Makefile')
-rw-r--r-- | scripts/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index 3d41631e..9a66c65d 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -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 |