about summary refs log tree commit diff
path: root/bin/svtree-run
diff options
context:
space:
mode:
Diffstat (limited to 'bin/svtree-run')
-rwxr-xr-xbin/svtree-run9
1 files changed, 6 insertions, 3 deletions
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