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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user