Dynamically manage service states based on user defined conditions

Old event system has been replaced with a more generic condition
concept. The idea is that finit plugins may provide arbitrary
conditions that services may specify as dependencies that they require
to run.

In order to accomodate this, the service management has been
redesigned to use a state machine.
This commit is contained in:
Tobias Waldekranz committed 2016-01-05 15:01:58 +01:00
1 parent 7a3408c173
commit 2232aea0f7
17 files changed
+879 -736

No files matched your search

+3 -3
View File
@@ -34,10 +34,10 @@ ARCHTOOL = `which git-archive-all`
ARCHIVE = $(PKG).tar
ARCHIVEZ = ../$(ARCHIVE).xz
EXEC = finit initctl reboot
HEADERS = finit.h plugin.h svc.h inetd.h helpers.h queue.h
HEADERS = finit.h plugin.h svc.h inetd.h helpers.h queue.h cond.h
DISTFILES = LICENSE README ChangeLog finit.conf services
OBJS = finit.o api.o client.o conf.o exec.o helpers.o pid.o sig.o \
svc.o service.o plugin.o tty.o inetd.o event.o
svc.o service.o plugin.o tty.o inetd.o cond.o cond-w.o
DEPLIBS =
TOPDIR = $(shell pwd)
-include config.mk
@@ -70,7 +70,7 @@ config.h: configure
finit: $(OBJS) $(DEPLIBS)
initctl: initctl.o svc.o helpers.o $(DEPLIBS)
initctl: initctl.o svc.o helpers.o cond.o $(DEPLIBS)
reboot: reboot.o $(DEPLIBS)