Update introduction, much system config can be done using finit.d

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-09-24 20:54:27 +02:00
1 parent d22ffa05bd
commit e58f84f3fb
1 file changed
+9 -6
+9 -6
View File
@@ -41,11 +41,14 @@ long boot times. Finit reduces context switches and forking of shell
scripts to provide a swift [system bootstrap](doc/bootstrap.md) written scripts to provide a swift [system bootstrap](doc/bootstrap.md) written
entirely in C. entirely in C.
Configuration is read from [/etc/finit.conf](doc/config.md#etcfinitconf) The system configuration can be read from either the traditional single
which details kernel modules to load, services and TTYs to start. When file, [/etc/finit.conf](doc/config.md#etcfinitconf) and/or from small
the initial [bootstrap](doc/bootstrap.md) is done, including setting up per-service files in [/etc/finit.d/](doc/config.md#etcfinitd). These
networking, all services in [/etc/finit.d/](doc/config.md#etcfinitd) and files detail kernel modules to load, bootstrap tasks, services and TTYs
the familiar [/etc/rc.local](#runparts--etcrclocal) are started. to start. When initial [bootstrap](doc/bootstrap.md) is done, including
setting up networking, all services the configured runlevel are started,
followed by running the familiar [/etc/rc.local](#runparts--etcrclocal)
script.
**Example /etc/finit.conf:** **Example /etc/finit.conf:**
@@ -53,7 +56,7 @@ the familiar [/etc/rc.local](#runparts--etcrclocal) are started.
# Fallback if /etc/hostname is missing # Fallback if /etc/hostname is missing
host default host default
# Runlevel to start after bootstrap, runlevel 'S' # Runlevel to start after bootstrap, 'S', default: 2
runlevel 2 runlevel 2
# Services to be monitored and respawned as needed # Services to be monitored and respawned as needed