diff options
Diffstat (limited to 'src/lib/service/user')
| -rw-r--r-- | src/lib/service/user/.s6-svscan/finish | 8 | ||||
| -rw-r--r-- | src/lib/service/user/goetia-shutdown/down | 0 | ||||
| -rwxr-xr-x | src/lib/service/user/goetia-shutdown/run | 20 |
3 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/service/user/.s6-svscan/finish b/src/lib/service/user/.s6-svscan/finish new file mode 100644 index 0000000..caf0dbc --- /dev/null +++ b/src/lib/service/user/.s6-svscan/finish @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +multisubstitute { + importas -Si USER + importas -Si USERTREE +} + +rm -Rf @tmpfsdir@/@usrrundir@/${USER}/${USERTREE} 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 } |
