From ad3f9dcc42d2d4e643a3acbc5005324623ebd54c Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 22 Sep 2025 19:14:31 +0200 Subject: combine init and run scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bin/svtree-init | 8 -------- bin/svtree-run | 9 ++++++--- 2 files changed, 6 insertions(+), 11 deletions(-) delete mode 100755 bin/svtree-init (limited to 'bin') diff --git a/bin/svtree-init b/bin/svtree-init deleted file mode 100755 index 74e6bf9..0000000 --- a/bin/svtree-init +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/execlineb -P - -importas -iS HOME -importas -iS XDG_RUNTIME_DIR - -envfile -I /opt/svtree/dirs.conf - -exec s6-rc-recompile diff --git a/bin/svtree-run b/bin/svtree-run index 72f47b0..eab97f5 100755 --- a/bin/svtree-run +++ b/bin/svtree-run @@ -1,11 +1,14 @@ #!/bin/execlineb -P -importas -iS HOME -importas -iS XDG_RUNTIME_DIR +importas -iS -D "/etc" XDG_CONFIG_HOME +importas -iS -D "/run" XDG_RUNTIME_DIR envfile -I /opt/svtree/dirs.conf -# compiled (setup by init script) +# compile s6-rc db +foreground { s6-rc-recompile } + +# check that we have the db if { eltest -e ${COMPILED_DIR} } # TODO: cgroup support -- cgit 1.4.1