From 466a79421d335c020bf2208692e9f7f41614f6f1 Mon Sep 17 00:00:00 2001 From: PS Date: Sun, 1 Feb 2026 12:05:19 +0100 Subject: version 0.2.0.0 --- src/lib/service/system/.s6-svscan/SIGINT | 3 +++ src/lib/service/system/.s6-svscan/SIGPWR | 3 +++ src/lib/service/system/.s6-svscan/SIGQUIT | 2 ++ src/lib/service/system/.s6-svscan/SIGTERM | 2 ++ src/lib/service/system/.s6-svscan/SIGUSR1 | 3 +++ src/lib/service/system/.s6-svscan/SIGUSR2 | 3 +++ src/lib/service/system/.s6-svscan/SIGWINCH | 2 ++ src/lib/service/system/.s6-svscan/crash | 6 ++++++ src/lib/service/system/.s6-svscan/finish | 6 ++++++ src/lib/service/system/s6-linux-init-runleveld/notification-fd | 1 + src/lib/service/system/s6-linux-init-runleveld/run | 7 +++++++ src/lib/service/system/s6-linux-init-shutdownd/notification-fd | 1 + src/lib/service/system/s6-linux-init-shutdownd/run | 3 +++ 13 files changed, 42 insertions(+) create mode 100755 src/lib/service/system/.s6-svscan/SIGINT create mode 100755 src/lib/service/system/.s6-svscan/SIGPWR create mode 100755 src/lib/service/system/.s6-svscan/SIGQUIT create mode 100755 src/lib/service/system/.s6-svscan/SIGTERM create mode 100755 src/lib/service/system/.s6-svscan/SIGUSR1 create mode 100755 src/lib/service/system/.s6-svscan/SIGUSR2 create mode 100755 src/lib/service/system/.s6-svscan/SIGWINCH create mode 100755 src/lib/service/system/.s6-svscan/crash create mode 100755 src/lib/service/system/.s6-svscan/finish create mode 100644 src/lib/service/system/s6-linux-init-runleveld/notification-fd create mode 100755 src/lib/service/system/s6-linux-init-runleveld/run create mode 100644 src/lib/service/system/s6-linux-init-shutdownd/notification-fd create mode 100755 src/lib/service/system/s6-linux-init-shutdownd/run (limited to 'src/lib/service') diff --git a/src/lib/service/system/.s6-svscan/SIGINT b/src/lib/service/system/.s6-svscan/SIGINT new file mode 100755 index 0000000..ea66bf3 --- /dev/null +++ b/src/lib/service/system/.s6-svscan/SIGINT @@ -0,0 +1,3 @@ +#!@shebangdir@/execlineb -P + +s6-linux-init-shutdown -a -r -- now diff --git a/src/lib/service/system/.s6-svscan/SIGPWR b/src/lib/service/system/.s6-svscan/SIGPWR new file mode 100755 index 0000000..1ae0ac8 --- /dev/null +++ b/src/lib/service/system/.s6-svscan/SIGPWR @@ -0,0 +1,3 @@ +#!@shebangdir@/execlineb -P + +s6-linux-init-shutdown -a -p -- now diff --git a/src/lib/service/system/.s6-svscan/SIGQUIT b/src/lib/service/system/.s6-svscan/SIGQUIT new file mode 100755 index 0000000..4d6fd2f --- /dev/null +++ b/src/lib/service/system/.s6-svscan/SIGQUIT @@ -0,0 +1,2 @@ +#!@shebangdir@/execlineb -P + diff --git a/src/lib/service/system/.s6-svscan/SIGTERM b/src/lib/service/system/.s6-svscan/SIGTERM new file mode 100755 index 0000000..4d6fd2f --- /dev/null +++ b/src/lib/service/system/.s6-svscan/SIGTERM @@ -0,0 +1,2 @@ +#!@shebangdir@/execlineb -P + diff --git a/src/lib/service/system/.s6-svscan/SIGUSR1 b/src/lib/service/system/.s6-svscan/SIGUSR1 new file mode 100755 index 0000000..1ae0ac8 --- /dev/null +++ b/src/lib/service/system/.s6-svscan/SIGUSR1 @@ -0,0 +1,3 @@ +#!@shebangdir@/execlineb -P + +s6-linux-init-shutdown -a -p -- now diff --git a/src/lib/service/system/.s6-svscan/SIGUSR2 b/src/lib/service/system/.s6-svscan/SIGUSR2 new file mode 100755 index 0000000..61f5411 --- /dev/null +++ b/src/lib/service/system/.s6-svscan/SIGUSR2 @@ -0,0 +1,3 @@ +#!@shebangdir@/execlineb -P + +s6-linux-init-shutdown -a -h -- now diff --git a/src/lib/service/system/.s6-svscan/SIGWINCH b/src/lib/service/system/.s6-svscan/SIGWINCH new file mode 100755 index 0000000..4d6fd2f --- /dev/null +++ b/src/lib/service/system/.s6-svscan/SIGWINCH @@ -0,0 +1,2 @@ +#!@shebangdir@/execlineb -P + diff --git a/src/lib/service/system/.s6-svscan/crash b/src/lib/service/system/.s6-svscan/crash new file mode 100755 index 0000000..f1a65b5 --- /dev/null +++ b/src/lib/service/system/.s6-svscan/crash @@ -0,0 +1,6 @@ +#!@shebangdir@/execlineb -P + +redirfd -w 2 /dev/console +fdmove -c 1 2 +foreground { s6-linux-init-echo -- "s6-svscan crashed. Rebooting." } +s6-linux-init-hpr -fr diff --git a/src/lib/service/system/.s6-svscan/finish b/src/lib/service/system/.s6-svscan/finish new file mode 100755 index 0000000..e405c85 --- /dev/null +++ b/src/lib/service/system/.s6-svscan/finish @@ -0,0 +1,6 @@ +#!@shebangdir@/execlineb -P + +redirfd -w 2 /dev/console +fdmove -c 1 2 +foreground { s6-linux-init-echo -- "s6-svscan exited. Rebooting." } +s6-linux-init-hpr -fr diff --git a/src/lib/service/system/s6-linux-init-runleveld/notification-fd b/src/lib/service/system/s6-linux-init-runleveld/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/src/lib/service/system/s6-linux-init-runleveld/notification-fd @@ -0,0 +1 @@ +3 diff --git a/src/lib/service/system/s6-linux-init-runleveld/run b/src/lib/service/system/s6-linux-init-runleveld/run new file mode 100755 index 0000000..aebacc4 --- /dev/null +++ b/src/lib/service/system/s6-linux-init-runleveld/run @@ -0,0 +1,7 @@ +#!@shebangdir@/execlineb -P + +fdmove -c 2 1 +fdmove 1 3 +s6-ipcserver -1 -a 0700 -c 1 -- s +s6-sudod -dt30000 -- +/etc/s6-linux-init/goetia/scripts/runlevel diff --git a/src/lib/service/system/s6-linux-init-shutdownd/notification-fd b/src/lib/service/system/s6-linux-init-shutdownd/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/src/lib/service/system/s6-linux-init-shutdownd/notification-fd @@ -0,0 +1 @@ +3 diff --git a/src/lib/service/system/s6-linux-init-shutdownd/run b/src/lib/service/system/s6-linux-init-shutdownd/run new file mode 100755 index 0000000..1b4fbf6 --- /dev/null +++ b/src/lib/service/system/s6-linux-init-shutdownd/run @@ -0,0 +1,3 @@ +#!@shebangdir@/execlineb -P + +s6-linux-init-shutdownd -d3 -c "/etc/s6-linux-init/goetia" -g 3000 -- cgit v1.2.3