Fix #71: Add support for enabling/disabling services in /etc/finit.d

This patch adds support for enabling and disabling services in
/etc/finit.d/ by adding another subdirectory:

    /etc/finit.d/available

Enabled service/run/task stanzas are by convention symlinked
to the parent dir.  The initctl tool has three new convenience
commands to facilitate operating with this:

   initctl list
   initctl enable  <CONF>
   initctl disable <CONF>

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-06-29 22:23:38 +02:00
parent 023a881fb9
commit 3428cd48b7
4 changed files with 220 additions and 4 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ else
finit_LDADD += -ldl
endif
initctl_SOURCES = initctl.c svc.c svc.h cond.c cond.h \
util.c util.h
initctl_SOURCES = initctl.c serv.c serv.h svc.c svc.h \
cond.c cond.h util.c util.h
initctl_CFLAGS = -W -Wall -Wextra -Wno-unused-parameter $(lite_CFLAGS)
initctl_LDADD = $(lite_LIBS)