From 9ca5ec16af812e3e6a8662778558c788aade42a9 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 10 Jun 2017 19:44:48 +0200 Subject: [PATCH] doc/config.md: Minor refactor to add an Introduction section Signed-off-by: Joachim Nilsson --- doc/config.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/config.md b/doc/config.md index 188f1e14..eaee6361 100644 --- a/doc/config.md +++ b/doc/config.md @@ -7,8 +7,9 @@ Table of Contents * [/etc/finit.conf](#etcfinitconf) * [/etc/finit.d](#etcfinitd) -/etc/finit.conf ---------------- + +Introduction +------------ Contrary to most other script based init alternatives (SysV [init][], [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 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: * `check `