From eb36640078ee6469427e85ca0695f8c920909ea0 Mon Sep 17 00:00:00 2001 From: PS
Date: Sat, 7 Feb 2026 10:34:21 +0100 Subject: Add doc --- doc/service/system/.s6-svscan.html | 38 +++++++++ doc/service/system/goetia-shutdown.html | 133 ++++++++++++++++++++++++++++++++ 2 files changed, 171 insertions(+) create mode 100644 doc/service/system/.s6-svscan.html create mode 100644 doc/service/system/goetia-shutdown.html (limited to 'doc/service') diff --git a/doc/service/system/.s6-svscan.html b/doc/service/system/.s6-svscan.html new file mode 100644 index 0000000..46e0db1 --- /dev/null +++ b/doc/service/system/.s6-svscan.html @@ -0,0 +1,38 @@ + + +
+ + + +
+ goetia-freebsd-init
+
+ goetia
+
+ Software
+
+ 0x53.net
+
+ The .s6-svscan directory contains scripts
+ that are executed if
+ s6-svscan
+ receives a signal or exits.
+ In this case its main use is to properly shutdown
+ the system using system-shutdown
+ upon receiving certain signals.
+
+ The .s6-svscan directory is easily overlooked, + do not forget to symlink/copy it! +
+ + diff --git a/doc/service/system/goetia-shutdown.html b/doc/service/system/goetia-shutdown.html new file mode 100644 index 0000000..7f6a866 --- /dev/null +++ b/doc/service/system/goetia-shutdown.html @@ -0,0 +1,133 @@ + + + + + + +
+ goetia-freebsd-init
+
+ goetia
+
+ Software
+
+ 0x53.net
+
+ goetia-shutdown is the service that starts + system-shutdown-daemon. + goetia-shutdown is down by default. + Starting it initiates the shutdown procedure. +
++ goetia-shutdown consists of three scripts: +
+./stage4,
+ which is by default not executable.
+ If it can not execute ./stage4,
+ and only in this case,
+ it continues with the following.
+ ./stage4 executable.
+ ./stage3b and
+ ./stage4
+ are executable.
+ Which leads to the execution of ./stage4.
+ shutdown-directive subdirectory of the
+ system runtimedirectory
+ using
+ s6-envdir.
+ DIRECTIVE evironment variable,
+ defaulting to -r, if DIRECTIVE is
+ not specified.
+ umount -A.
+ shutdown -o ${DIRECTIVE} now.
+ + The entire shutdown procedure roughly works as follows: +
+