From e613c3945d4d81cce398c73fe7714860eb113006 Mon Sep 17 00:00:00 2001 From: PS Date: Sun, 1 Feb 2026 12:04:04 +0100 Subject: version 0.2.0.0 --- src/bin/system-shutdown | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 src/bin/system-shutdown (limited to 'src/bin/system-shutdown') diff --git a/src/bin/system-shutdown b/src/bin/system-shutdown new file mode 100755 index 0000000..53b2d4b --- /dev/null +++ b/src/bin/system-shutdown @@ -0,0 +1,14 @@ +#!@shebangdir@/execlineb -s0 + +# ISC license. + +ifelse { eltest \\\\${@} =~ ^-[hpr]$ } { + if { mkdir -p @tmpfsdir@/@sysrundir@/shutdown-directive } + if { + redirfd -w 1 @tmpfsdir@/@sysrundir@/shutdown-directive/DIRECTIVE + echo ${@} + } + s6-svc -U @tmpfsdir@/@sysrundir@/service/goetia-shutdown +} +if { echo "system-shutdown: usage: system-shutdown -h | -p | -r" } +exit 100 -- cgit v1.2.3