mirror of
https://github.com/troglobit/finit.git
synced 2026-11-15 19:13:11 +00:00
doc/config.md: Minor refactor to add an Introduction section
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
7041813966
commit
9ca5ec16af
1 file changed
+14
-2
+14
-2
@@ -7,8 +7,9 @@ Table of Contents
|
|||||||
* [/etc/finit.conf](#etcfinitconf)
|
* [/etc/finit.conf](#etcfinitconf)
|
||||||
* [/etc/finit.d](#etcfinitd)
|
* [/etc/finit.d](#etcfinitd)
|
||||||
|
|
||||||
/etc/finit.conf
|
|
||||||
---------------
|
Introduction
|
||||||
|
------------
|
||||||
|
|
||||||
Contrary to most other script based init alternatives (SysV [init][],
|
Contrary to most other script based init alternatives (SysV [init][],
|
||||||
[upstart][], [systemd][], [OpenRC][], etc.) Finit relies on its main
|
[upstart][], [systemd][], [OpenRC][], etc.) Finit relies on its main
|
||||||
@@ -24,6 +25,17 @@ IPsec or OpenVPN, a callback can check if the outbound interface is up
|
|||||||
and has an IP address, or just check if the service is disabled — much
|
and has an IP address, or just check if the service is disabled — much
|
||||||
like what a SysV init start script usually does.
|
like what a SysV init start script usually does.
|
||||||
|
|
||||||
|
* `/etc/finit.conf`: main configuration file, read only once at boot
|
||||||
|
* `/etc/finit.d/*.conf`: snippets, usually one service per file
|
||||||
|
|
||||||
|
Only the `/etc/finit.d/*.conf` files are possible to reload at runtime,
|
||||||
|
so usually only bootstrap (runlevel 'S') services are declared in the
|
||||||
|
`/etc/finit.conf` file.
|
||||||
|
|
||||||
|
|
||||||
|
/etc/finit.conf
|
||||||
|
---------------
|
||||||
|
|
||||||
Syntax:
|
Syntax:
|
||||||
|
|
||||||
* `check <DEV>`
|
* `check <DEV>`
|
||||||
|
|||||||
Reference in new issue
Block a user