aboutsummaryrefslogtreecommitdiff
path: root/dendrite/dendrite-log/run
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2022-09-06 16:49:45 +0530
committersinanmohd <pcmsinan@gmail.com>2022-09-06 17:00:09 +0530
commit4ee863477a2b885ad71a26ad6448b0d258b7895b (patch)
treeb8de66e11378914ce8f2ec68332c1492fc66bf4d /dendrite/dendrite-log/run
parent6f6d441a58d170722f011aff106f2aed54562add (diff)
dendrite: add s6-rc service scripts for dendrite
Diffstat (limited to 'dendrite/dendrite-log/run')
-rw-r--r--dendrite/dendrite-log/run9
1 files changed, 9 insertions, 0 deletions
diff --git a/dendrite/dendrite-log/run b/dendrite/dendrite-log/run
new file mode 100644
index 0000000..82f55a7
--- /dev/null
+++ b/dendrite/dendrite-log/run
@@ -0,0 +1,9 @@
+#!/bin/execlineb -P
+envfile /etc/s6/config/dendrite.conf
+importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
+ifelse { test -w /var/log } {
+ foreground { install -d -o s6log -g s6log /var/log/dendrite }
+ s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/dendrite
+}
+foreground { install -d -o s6log -g s6log /run/log/dendrite }
+s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/dendrite