From f7df2f7bb6abbea365cccb1345dcf1a1b7a80797 Mon Sep 17 00:00:00 2001 From: PS
Date: Sat, 7 Feb 2026 10:16:45 +0100 Subject: Improve usertree shutdown; improve system .s6-svscan directory --- src/lib/service/user/goetia-shutdown/down | 0 src/lib/service/user/goetia-shutdown/run | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/lib/service/user/goetia-shutdown/down create mode 100755 src/lib/service/user/goetia-shutdown/run (limited to 'src/lib/service/user/goetia-shutdown') diff --git a/src/lib/service/user/goetia-shutdown/down b/src/lib/service/user/goetia-shutdown/down new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/service/user/goetia-shutdown/run b/src/lib/service/user/goetia-shutdown/run new file mode 100755 index 0000000..e13d016 --- /dev/null +++ b/src/lib/service/user/goetia-shutdown/run @@ -0,0 +1,20 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +multisubstitute { + importas -Si USER + importas -Si USERTREE +} + +if -x0 { eltest -d @tmpfsdir@/@usrrundir@/${USER}/${USERTREE} } + +foreground { + foreground { echo "\nshutdown\n" } + s6-rc -l @tmpfsdir@/@usrrundir@/${USER}/${USERTREE}/s6-rc -v2 -b -da -t@timeout@ change +} + +foreground { s6-svc -h @tmpfsdir@/@usrrundir@/${USER}/${USERTREE}/service/s6-svscan-log } +foreground { s6-svscanctl -t @tmpfsdir@/@usrrundir@/${USER}/${USERTREE}/service } -- cgit v1.2.3