diff options
| author | PS <p@0x53.net> | 2026-02-07 10:16:45 +0100 |
|---|---|---|
| committer | PS <p@0x53.net> | 2026-02-07 10:16:45 +0100 |
| commit | f7df2f7bb6abbea365cccb1345dcf1a1b7a80797 (patch) | |
| tree | 2bead70379ffd134fb4190c9564b37c5c68cf581 /src/lib/service/user/goetia-shutdown | |
| parent | 980c5408489a3a3a56e49c3873f1bce6a0155cad (diff) | |
| download | goetia-base-f7df2f7bb6abbea365cccb1345dcf1a1b7a80797.tar.gz goetia-base-f7df2f7bb6abbea365cccb1345dcf1a1b7a80797.tar.bz2 goetia-base-f7df2f7bb6abbea365cccb1345dcf1a1b7a80797.zip | |
Improve usertree shutdown; improve system .s6-svscan directory
Diffstat (limited to 'src/lib/service/user/goetia-shutdown')
| -rw-r--r-- | src/lib/service/user/goetia-shutdown/down | 0 | ||||
| -rwxr-xr-x | src/lib/service/user/goetia-shutdown/run | 20 |
2 files changed, 20 insertions, 0 deletions
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 --- /dev/null +++ b/src/lib/service/user/goetia-shutdown/down 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 } |
