diff options
Diffstat (limited to 'src/lib/source/system/other')
47 files changed, 168 insertions, 0 deletions
diff --git a/src/lib/source/system/other/acpid-srv/producer-for b/src/lib/source/system/other/acpid-srv/producer-for new file mode 100644 index 0000000..c5fe510 --- /dev/null +++ b/src/lib/source/system/other/acpid-srv/producer-for @@ -0,0 +1 @@ +acpid-log diff --git a/src/lib/source/system/other/acpid-srv/run b/src/lib/source/system/other/acpid-srv/run new file mode 100644 index 0000000..2837d01 --- /dev/null +++ b/src/lib/source/system/other/acpid-srv/run @@ -0,0 +1,10 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://sourceforge.net/projects/acpid2/ + +fdmove -c 2 1 + +acpid + -f + -n diff --git a/src/lib/source/system/other/acpid-srv/type b/src/lib/source/system/other/acpid-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/src/lib/source/system/other/acpid-srv/type @@ -0,0 +1 @@ +longrun diff --git a/src/lib/source/system/other/dmesg-srv/dependencies.d/mount-proc b/src/lib/source/system/other/dmesg-srv/dependencies.d/mount-proc new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/dmesg-srv/dependencies.d/mount-proc diff --git a/src/lib/source/system/other/dmesg-srv/producer-for b/src/lib/source/system/other/dmesg-srv/producer-for new file mode 100644 index 0000000..83a6f9a --- /dev/null +++ b/src/lib/source/system/other/dmesg-srv/producer-for @@ -0,0 +1 @@ +dmesg-log diff --git a/src/lib/source/system/other/dmesg-srv/run b/src/lib/source/system/other/dmesg-srv/run new file mode 100644 index 0000000..18beb07 --- /dev/null +++ b/src/lib/source/system/other/dmesg-srv/run @@ -0,0 +1,10 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://skarnet.org/software/s6/ + +fdmove -c 2 1 + +redirfd -r 0 /proc/kmsg + +ucspilogd diff --git a/src/lib/source/system/other/dmesg-srv/type b/src/lib/source/system/other/dmesg-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/src/lib/source/system/other/dmesg-srv/type @@ -0,0 +1 @@ +longrun diff --git a/src/lib/source/system/other/kmod-static-nodes/dependencies.d/mount-run b/src/lib/source/system/other/kmod-static-nodes/dependencies.d/mount-run new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/kmod-static-nodes/dependencies.d/mount-run diff --git a/src/lib/source/system/other/kmod-static-nodes/type b/src/lib/source/system/other/kmod-static-nodes/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/kmod-static-nodes/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/kmod-static-nodes/up b/src/lib/source/system/other/kmod-static-nodes/up new file mode 100644 index 0000000..d83d5b9 --- /dev/null +++ b/src/lib/source/system/other/kmod-static-nodes/up @@ -0,0 +1,9 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/about/ + +fdmove -c 2 1 + +foreground { mkdir -p /run/tmpfiles.d } +foreground { kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf } diff --git a/src/lib/source/system/other/local/down b/src/lib/source/system/other/local/down new file mode 100644 index 0000000..0a47f3d --- /dev/null +++ b/src/lib/source/system/other/local/down @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +elglob -0 SCRIPTS /etc/local.d/*.down + +forx -pE SCRIPT { ${SCRIPTS} } + ${SCRIPT} diff --git a/src/lib/source/system/other/local/type b/src/lib/source/system/other/local/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/local/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/local/up b/src/lib/source/system/other/local/up new file mode 100644 index 0000000..3a553ff --- /dev/null +++ b/src/lib/source/system/other/local/up @@ -0,0 +1,10 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +elglob -0 SCRIPTS /etc/local.d/*.up + +forx -pE SCRIPT { ${SCRIPTS} } + ${SCRIPT} diff --git a/src/lib/source/system/other/modules/type b/src/lib/source/system/other/modules/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/modules/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/modules/up b/src/lib/source/system/other/modules/up new file mode 100644 index 0000000..3983ae1 --- /dev/null +++ b/src/lib/source/system/other/modules/up @@ -0,0 +1,21 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +define MODULE_CONF /etc/modules-load.d + +elglob -0sd'' FILES ${MODULE_CONF}/* +if -x0 { eltest ${FILES} } +define -sd'' SPLITFILES ${FILES} +pipeline { cat ${SPLITFILES} } +pipeline { + sed + -e "/^#/d" + -e "s/^[\ \t]*//g" + -e "s/[\ \t]*$//g" + -e "/^$/d" +} +forstdin -pE MODULE + modprobe -ab ${MODULE} diff --git a/src/lib/source/system/other/random-seed-load/dependencies.d/mount-dev b/src/lib/source/system/other/random-seed-load/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/random-seed-load/dependencies.d/mount-dev diff --git a/src/lib/source/system/other/random-seed-load/type b/src/lib/source/system/other/random-seed-load/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/random-seed-load/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/random-seed-load/up b/src/lib/source/system/other/random-seed-load/up new file mode 100644 index 0000000..53de975 --- /dev/null +++ b/src/lib/source/system/other/random-seed-load/up @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +if -x0 { eltest -e /var/lib/rngseed } +redirfd -w 1 /dev/urandom cat /var/lib/rngseed diff --git a/src/lib/source/system/other/random-seed-save/dependencies.d/mount b/src/lib/source/system/other/random-seed-save/dependencies.d/mount new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/dependencies.d/mount diff --git a/src/lib/source/system/other/random-seed-save/dependencies.d/mount-dev b/src/lib/source/system/other/random-seed-save/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/dependencies.d/mount-dev diff --git a/src/lib/source/system/other/random-seed-save/dependencies.d/mount-proc b/src/lib/source/system/other/random-seed-save/dependencies.d/mount-proc new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/dependencies.d/mount-proc diff --git a/src/lib/source/system/other/random-seed-save/dependencies.d/random-seed-load b/src/lib/source/system/other/random-seed-save/dependencies.d/random-seed-load new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/dependencies.d/random-seed-load diff --git a/src/lib/source/system/other/random-seed-save/down b/src/lib/source/system/other/random-seed-save/down new file mode 100644 index 0000000..cdbf16f --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/down @@ -0,0 +1,16 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +backtick -ED "512" BYTES { cat /proc/sys/kernel/random/poolsize } + +umask 377 + +redirfd -a 2 /dev/null + +dd if=/dev/urandom + of=/var/lib/rngseed + count=1 + bs=${BYTES} diff --git a/src/lib/source/system/other/random-seed-save/type b/src/lib/source/system/other/random-seed-save/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/random-seed-save/up b/src/lib/source/system/other/random-seed-save/up new file mode 100644 index 0000000..cdbf16f --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/up @@ -0,0 +1,16 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +backtick -ED "512" BYTES { cat /proc/sys/kernel/random/poolsize } + +umask 377 + +redirfd -a 2 /dev/null + +dd if=/dev/urandom + of=/var/lib/rngseed + count=1 + bs=${BYTES} diff --git a/src/lib/source/system/other/swap-fstab/dependencies.d/mount-dev b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-dev diff --git a/src/lib/source/system/other/swap-fstab/dependencies.d/mount-proc b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-proc new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-proc diff --git a/src/lib/source/system/other/swap-fstab/dependencies.d/mount-sys b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-sys new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-sys diff --git a/src/lib/source/system/other/swap-fstab/dependencies.d/udev b/src/lib/source/system/other/swap-fstab/dependencies.d/udev new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/dependencies.d/udev diff --git a/src/lib/source/system/other/swap-fstab/down b/src/lib/source/system/other/swap-fstab/down new file mode 100644 index 0000000..00e5a61 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/down @@ -0,0 +1,7 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +swapoff -a diff --git a/src/lib/source/system/other/swap-fstab/type b/src/lib/source/system/other/swap-fstab/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/swap-fstab/up b/src/lib/source/system/other/swap-fstab/up new file mode 100644 index 0000000..31d1a50 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/up @@ -0,0 +1,7 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +swapon -a diff --git a/src/lib/source/system/other/sysctl/type b/src/lib/source/system/other/sysctl/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/sysctl/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/sysctl/up b/src/lib/source/system/other/sysctl/up new file mode 100644 index 0000000..b7d376f --- /dev/null +++ b/src/lib/source/system/other/sysctl/up @@ -0,0 +1,3 @@ +fdmove -c 2 1 + +sysctl -q --system diff --git a/src/lib/source/system/other/syslog-srv/dependencies.d/mount-dev b/src/lib/source/system/other/syslog-srv/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/dependencies.d/mount-dev diff --git a/src/lib/source/system/other/syslog-srv/notification-fd b/src/lib/source/system/other/syslog-srv/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/notification-fd @@ -0,0 +1 @@ +3 diff --git a/src/lib/source/system/other/syslog-srv/producer-for b/src/lib/source/system/other/syslog-srv/producer-for new file mode 100644 index 0000000..0a564f6 --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/producer-for @@ -0,0 +1 @@ +syslog-log diff --git a/src/lib/source/system/other/syslog-srv/run b/src/lib/source/system/other/syslog-srv/run new file mode 100644 index 0000000..a410c5c --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/run @@ -0,0 +1,11 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://skarnet.org/software/s6/s6-socklog.html + +fdmove -c 2 1 + +s6-envuidgid @loguser@ + +s6-socklog + -d3 -U diff --git a/src/lib/source/system/other/syslog-srv/type b/src/lib/source/system/other/syslog-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/type @@ -0,0 +1 @@ +longrun diff --git a/src/lib/source/system/other/tmpfiles-dev/dependencies.d/kmod-static-nodes b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/kmod-static-nodes new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/kmod-static-nodes diff --git a/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-dev b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-dev diff --git a/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-proc b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-proc new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-proc diff --git a/src/lib/source/system/other/tmpfiles-dev/type b/src/lib/source/system/other/tmpfiles-dev/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-dev/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/tmpfiles-dev/up b/src/lib/source/system/other/tmpfiles-dev/up new file mode 100644 index 0000000..d95481c --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-dev/up @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://github.com/systemd/systemd + +fdmove -c 2 1 + +systemd-tmpfiles --prefix=/dev --create --boot diff --git a/src/lib/source/system/other/tmpfiles-setup/dependencies.d/mount b/src/lib/source/system/other/tmpfiles-setup/dependencies.d/mount new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-setup/dependencies.d/mount diff --git a/src/lib/source/system/other/tmpfiles-setup/type b/src/lib/source/system/other/tmpfiles-setup/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-setup/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/tmpfiles-setup/up b/src/lib/source/system/other/tmpfiles-setup/up new file mode 100644 index 0000000..54bcd71 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-setup/up @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://github.com/systemd/systemd + +fdmove -c 2 1 + +systemd-tmpfiles --exclude-prefix=/dev --create --remove --boot |
