From 4dfeca08c11dd9bf031ff8c2f12e76add27ab0f0 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 15 Sep 2020 21:20:41 +0300 Subject: update --- src/docs/Init-Hooks.html | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 src/docs/Init-Hooks.html (limited to 'src/docs/Init-Hooks.html') diff --git a/src/docs/Init-Hooks.html b/src/docs/Init-Hooks.html new file mode 100644 index 0000000..77392d1 --- /dev/null +++ b/src/docs/Init-Hooks.html @@ -0,0 +1,75 @@ + + + + + + +Init Hooks (Carbs Linux User Manual) + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: Init System  

+
+
+

4.2 Init Hooks

+ +

Init hooks are for custom personal commands that the user may want to add to +alter their boot. These can be used to load kernel modules, modify interfaces, +and lot more. Those hooks are added to the /etc/init directory with the +hook name as the suffix. For example, a boot script will be placed as +/etc/init/my-hook.boot. Currently, there are 4 hooks that the user can use. +

+
+
early-boot
+

Run after pseudo-filesystems are mounted. +

+
boot
+

Run before the boot stage is completed. +

+
pre.shutdown
+

Run first when shutting down. +

+
post.shutdown
+

Run just before the system is halted. +

+
+ + + + + + -- cgit v1.2.3