mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Support delayed load of services from plugins and bundled services
This adds a new function conf_save_service() replacing service_register() for plugins and bundled services like watchdogd, keventd, runparts, etc. The benefits to this change are several: - Plugin/Bundled services no longer risk starting before udev or other critical services/task have started - Definitions can be overridden by an administrator (see docs) - Increases visibility (user: where are all these services coming from?) Previously the origin (file the service was loaded from) was NULL. - Adds another level of extensibility to Finit The most notable change is that dbus is no longer started before udevd. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
eaaf8d862e
commit
5d703fd39e
6 files changed
+61
-14
No files matched your search
+17
-2
@@ -68,10 +68,18 @@ the following layout is recommended:
|
||||
| : `- another-static.conf
|
||||
| :
|
||||
| `- finit.conf
|
||||
`- lib/
|
||||
|- lib
|
||||
| `- finit/
|
||||
| `- system/
|
||||
| |- 10-hotplug.conf
|
||||
| `- ...
|
||||
`- run/
|
||||
`- finit/
|
||||
`- system/
|
||||
|- 10-hotplug.conf
|
||||
|- dbus.conf
|
||||
|- keventd.conf
|
||||
|- runparts.conf
|
||||
|- watchdogd.conf
|
||||
`- ...
|
||||
|
||||
Configuration files in `/etc` are provided by the user, or projects like
|
||||
@@ -85,6 +93,11 @@ the hard-coded services provided by plugins before. All .conf files in this
|
||||
directory be either replaced by a system administrator or overridden by a
|
||||
file with the same name in `/etc/finit.d/`.
|
||||
|
||||
The files in `/run/finit/system/*.conf` are created by plugins and Finit
|
||||
bundled services like runparts, the [watchdog](#watchdog), and `keventd`
|
||||
if they are enabled. Like `/lib/finit/system/*.conf`, these files can
|
||||
be overridden by file with the same name in `/etc/finit.d/`.
|
||||
|
||||
Services in the `available/` and `enabled/` sub-directories are called
|
||||
dynamic services, in contrast to static services -- the only difference
|
||||
being where they are installed and if the `initctl` tool can manage them
|
||||
@@ -100,6 +113,8 @@ unique group, where files within each group are sorted alphabetically.
|
||||
|
||||
/lib/finit/system/10-hotplug.conf
|
||||
/lib/finit/system/90-testserv.conf
|
||||
/run/finit/system/dbus.conf
|
||||
/run/finit/system/runparts.conf
|
||||
/etc/finit.d/10-abc.conf
|
||||
/etc/finit.d/20-abc.conf
|
||||
/etc/finit.d/enabled/1-aaa.conf
|
||||
|
||||
Reference in new issue
Block a user