From 077002e647aeaf9ca9948d00b954ba1eac4b8095 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 9 Jan 2023 07:07:18 +0100 Subject: [PATCH] doc: follow-up to 02a110e, rename new section, add list of runlevels Signed-off-by: Joachim Wiberg --- doc/config.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/doc/config.md b/doc/config.md index de601337..f9c037e8 100644 --- a/doc/config.md +++ b/doc/config.md @@ -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