Implement a "chain-to" service property.
authorDavin McCall <davmac@davmac.org>
Mon, 29 Oct 2018 19:02:59 +0000 (19:02 +0000)
committerDavin McCall <davmac@davmac.org>
Tue, 30 Oct 2018 10:03:05 +0000 (10:03 +0000)
commitf1c1672893755c13640eced55d28f07901e3396d
tree3cf0d96aceb63ddb74bb70acfaf4b8179e454b44
parent825822f1bf84ed6b0df349c60ddc16692f5c5bfb
Implement a "chain-to" service property.

This specifies that if a service completes, another service should be
started (specified by name and resolved at the time it is needed, not
beforehand).

This has applications for recovery ("single-user mode") services, and
for multi-stage booting where service descriptions are on a separate
filesystem which is mounted by a service in an initial stage.
doc/linux/services/single
doc/manpages/dinit-service.5
src/control.cc
src/dinit.cc
src/includes/load-service.h
src/includes/service.h
src/load-service.cc
src/service.cc