From 9a962c86c8d83b26a4024f707c3e3d7567f7c8d1 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 22 Apr 2023 15:10:49 +0200 Subject: [PATCH] Update docs a bit about runlevel 1. Signed-off-by: Joachim Wiberg --- doc/config.md | 3 +++ man/finit.8 | 6 +++++- man/finit.conf.5 | 6 +++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/config.md b/doc/config.md index 9ba327c9..648d0459 100644 --- a/doc/config.md +++ b/doc/config.md @@ -541,6 +541,9 @@ The system runlevel to go to after [bootstrap][] (S) has completed. `N` is the runlevel number 0-9, where 6 is reserved for reboot and 0 for halt. +It is recommended to keep runlevel 1 as single-user mode, because +Finit disables networking in this mode. + *Default:* 2 > **Note:** only read and executed in runlevel S ([bootstrap][]). diff --git a/man/finit.8 b/man/finit.8 index 99a88439..4c6e02e5 100644 --- a/man/finit.8 +++ b/man/finit.8 @@ -2,7 +2,7 @@ .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) -.Dd June 6, 2021 +.Dd Apr 22, 2023 .\" Please adjust this date whenever revising the manpage. .Dt FINIT 8 SMM .Os Linux @@ -148,6 +148,10 @@ the regular runlevel. All services and TTYs in will be started, e.g., a .Cm tty [1] @console nologin configuration presents you with a root console without login. +.Pp +.Sy Note: +by definition, single user mode does not have networking enabled. This +is also true for runlevel 1. .El .Sh BOOTING .Pp diff --git a/man/finit.conf.5 b/man/finit.conf.5 index 316945db..c41c0f74 100644 --- a/man/finit.conf.5 +++ b/man/finit.conf.5 @@ -2,7 +2,7 @@ .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) -.Dd Oct 17, 2020 +.Dd Apr 22, 2023 .Dt FINIT.CONF 5 SMM .Os Linux .Sh NAME @@ -115,6 +115,10 @@ is the runlevel number 0-9, where 6 is reserved for reboot and 0 for halt. All other can be used by operating system administrators. Default: 2 .Pp +It s recommended to keep runlevel 1 as single-user mode, because +.Nm +disables networking in this mode. +.Pp .Sy Note: only read and executed in runlevel S (bootstrap). .It Cm run Oo LVLS Oc Ao COND Ac Ar /path/to/cmd ARGS Op -- Optional description