doc: follow-up to 02a110e, rename new section, add list of runlevels

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-01-09 07:07:18 +01:00
parent 988cdf9878
commit 077002e647
+13 -6
View File
@@ -2,7 +2,7 @@ Finit Configuration
===================
* [Introduction](#introduction)
* [Configuration Overview](#configuration-overview)
* [Configuration Files](#configuration-files)
* [Runlevels](#runlevels)
* [Managing Services](#managing-services)
* [Environment Variables](#environment-variables)
@@ -39,13 +39,13 @@ Introduction
------------
Finit is a process starter and service monitor designed to run as PID 1
on Linux. It consists of plugins and configuration files. Plugins
start at [hook points](plugins.md) and can run various set up or install
event handlers that later provide runtime services, e.g. PID file
monitoring.
on Linux. It consists of [plugins](plugins.md) and configuration files.
Plugins start at [hook points](plugins.md#hooks) and can run various set
up, or install event handlers that later provide runtime services, e.g.,
PID file monitoring, or [conditions](conditions.md).
### Configuration Overview
### Configuration Files
Originally Finit was configured using a single file, `/etc/finit.conf`.
Although still possible, today we recommended using the Apache-style
@@ -81,6 +81,13 @@ files.
### Runlevels
- ` S`: bootStrap
- ` 1`: Single user mode
- `2-5`: traditional multi-user mode
- ` 6`: reboot
- `7-9`: multi-user mode (extra)
- ` 0`: shutdown
Runlevels are declared per service/run/task/sysv command. Starting in
runlevel S ([bootStrap](bootstrap.md)), usually only for tasks supposed
to run once at boot, and services like `syslogd`, which you need to