mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
Add support for adding/removing services from /etc/finit.d at runtime.
This patch adds support for adding and removing services from Finit at runtime. Configuration file stanzas for service, run and task may now be written to files in /etc/finit.d/*.conf, using the exact same syntax as before in /etc/finit.conf. When a file is added, removed or modified the user may simply SIGHUP Finit (PID 1) to activate the changes. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
24051ab2fb
commit
687f52b0b5
10 files changed
+454
-233
No files matched your search
@@ -18,9 +18,7 @@ very low dependency on external packages.
|
||||
General
|
||||
-------
|
||||
|
||||
* Make it possible to at least reload .conf files in `/etc/finit.d/` --
|
||||
At first all we need to support is the service directive, All other
|
||||
directives, read from `/etc/finit.conf`, can remain static.
|
||||
* Add support for instances, e.g. to monitor several DHCP clients.
|
||||
* Make initctl synchroneous, don't let `init 1` return until finit
|
||||
has successfully entered runlevel 1, all proceses have been stopped.
|
||||
* Add `!` or `[wait <pidfile>]` to service directive to let finit pause
|
||||
@@ -31,10 +29,6 @@ General
|
||||
and `RELOAD` on `STDOUT` from a script ... call it for instance
|
||||
`.monitor=` in `svc_t` ... the script named as the basename of the
|
||||
service it monitors + `.sh`.
|
||||
* The `runparts` directive may need to be deprecated, or to have its
|
||||
semantics changed. We need `/etc/finit.d/` for extending `finit.conf`
|
||||
-- if not possible, then maybe filter out the service monitor scripts
|
||||
before running the scripts?
|
||||
* Add compile-time supoprt for running `/bin/sh` instead of `getty`
|
||||
* Add support for `init <q | reload-configuration>` and `SIGHUP` to
|
||||
have finit reload its `finit.conf`, but also
|
||||
|
||||
Reference in new issue
Block a user