From 4ee863477a2b885ad71a26ad6448b0d258b7895b Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 6 Sep 2022 16:49:45 +0530 Subject: dendrite: add s6-rc service scripts for dendrite --- dendrite/dendrite-log/run | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dendrite/dendrite-log/run (limited to 'dendrite/dendrite-log/run') 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 -- cgit v1.2.3