From 49b8a573a195f4b2cee992cd10678694da0a6f4f Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 19 May 2017 13:37:30 -0500 Subject: add kill_all helper This is similar to the sysvinit killall5 utility. It should only be used in service scripts, so it will not be installed in the path. This closes #129. --- src/rc/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/rc/Makefile') diff --git a/src/rc/Makefile b/src/rc/Makefile index 2bc03f76..5874ed17 100644 --- a/src/rc/Makefile +++ b/src/rc/Makefile @@ -14,7 +14,7 @@ SRCS+= rc-selinux.c endif ifeq (${OS},Linux) -SRCS+= openrc-init.c openrc-shutdown.c +SRCS+= kill_all.c openrc-init.c openrc-shutdown.c endif CLEANFILES= version.h rc-selinux.o @@ -44,6 +44,7 @@ RC_SBINPROGS= mark_service_starting mark_service_started \ rc-abort swclock ifeq (${OS},Linux) +RC_BINPROGS+= kill_all SBINPROGS+= openrc-init openrc-shutdown endif @@ -99,6 +100,9 @@ checkpath: rc-selinux.o endif ${CC} ${LOCAL_CFLAGS} ${LOCAL_LDFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ $^ ${LDADD} +kill_all: kill_all.o _usage.o + ${CC} ${LOCAL_CFLAGS} ${LOCAL_LDFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ $^ ${LDADD} + einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \ eindent eoutdent esyslog eval_ecolors ewaitfile \ veinfo vewarn vebegin veend vewend veindent veoutdent: do_e.o rc-misc.o -- cgit v1.2.3