From eb36640078ee6469427e85ca0695f8c920909ea0 Mon Sep 17 00:00:00 2001 From: PS
Date: Sat, 7 Feb 2026 10:34:21 +0100 Subject: Add doc --- doc/bin/system-init.html | 132 +++++++++++++++++++++++++++++++ doc/bin/system-shutdown.html | 88 +++++++++++++++++++++ doc/index.html | 113 +++++++++++++++++++++++++++ doc/service/system/.s6-svscan.html | 38 +++++++++ doc/service/system/goetia-shutdown.html | 133 ++++++++++++++++++++++++++++++++ 5 files changed, 504 insertions(+) create mode 100644 doc/bin/system-init.html create mode 100644 doc/bin/system-shutdown.html create mode 100644 doc/index.html create mode 100644 doc/service/system/.s6-svscan.html create mode 100644 doc/service/system/goetia-shutdown.html diff --git a/doc/bin/system-init.html b/doc/bin/system-init.html new file mode 100644 index 0000000..f744d6a --- /dev/null +++ b/doc/bin/system-init.html @@ -0,0 +1,132 @@ + + +
+ + + +
+ goetia-freebsd-init
+
+ goetia
+
+ Software
+
+ 0x53.net
+
+ system-init is a minimal, scripted init to bring up a goetia based system. +
+system-init+
/dev/console its stdout and stderr.
+ BUNDLE,
+ which can be specified on the Kernel command line.
+ If it is undefined, it uses default as the value.
+ PATH,
+ which can be specified on the Kernel command line.
+ If it is undefined, it uses
+ /command:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/libexec:/usr/local/libexec
+ as the value.
+ PATH environment variable to the value
+ chosen above.
+ /.
+ s6-setsid
+ to become the session leader.
+ system/uncaught-logs
+ subdirectory of the
+ log directory
+ to the
+ system/
+ subdirectory of the
+ runtime directory
+ if they exist.
+ prepare-svscan
+ with the proper arguments.
+ s6-svscan
+ on the scandir represented by the
+ system/service
+ subdirectory of the
+ runtime directory.
+ + system-init is primarily intended to be used + as an init for an acutal boot process, not for containers. +
+ + diff --git a/doc/bin/system-shutdown.html b/doc/bin/system-shutdown.html new file mode 100644 index 0000000..c20d0a1 --- /dev/null +++ b/doc/bin/system-shutdown.html @@ -0,0 +1,88 @@ + + + + + + +
+ goetia-freebsd-init
+
+ goetia
+
+ Software
+
+ 0x53.net
+
+ system-shutdown is the interface to the + system-shutdown-daemon. +
+system-shutdown -h | -p | -r+
DIRECTIVE in the envdir at the
+ shutdown-directive subdirectory of the
+ system runtime directory.
+ -h: at the end of the shutdown sequence, halt the system.
+ -p: at the end of the shutdown sequence, poweroff the system.
+ -r: at the end of the shutdown sequence, reboot the system.
+ + There is a reason this program exists as part of (multiple) + goetia-init packages and not as part of + goetia-base. + It is that some supported init systems, like + s6-linux-init + (through goetia-s6-linux-init) + provide their own shutdown procedure and interface. +
+ + diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..38cb5a0 --- /dev/null +++ b/doc/index.html @@ -0,0 +1,113 @@ + + + + + + ++ goetia-freebsd-init contains + init and shutdown scripts for running goetia on a + FreeBSD operating system. + Additionally, it contains + service directories + specific to this init system. +
++ goetia-freebsd-init is free software. It is available under the + ISC license. +
+git clone git://git.0x53.net/goetia-freebsd-init+
+ All of the following are + execline + scripts. +
++ Service directories specific to the Linux Kernel + and to this init system. +
+
+ 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: +
+