diff options
author | sinanmohd <pcmsinan@gmail.com> | 2022-09-06 16:49:45 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2022-09-06 17:00:09 +0530 |
commit | 4ee863477a2b885ad71a26ad6448b0d258b7895b (patch) | |
tree | b8de66e11378914ce8f2ec68332c1492fc66bf4d /dendrite/dendrite-log | |
parent | 6f6d441a58d170722f011aff106f2aed54562add (diff) |
dendrite: add s6-rc service scripts for dendrite
Diffstat (limited to 'dendrite/dendrite-log')
-rw-r--r-- | dendrite/dendrite-log/consumer-for | 1 | ||||
-rw-r--r-- | dendrite/dendrite-log/notification-fd | 1 | ||||
-rw-r--r-- | dendrite/dendrite-log/pipeline-name | 1 | ||||
-rw-r--r-- | dendrite/dendrite-log/run | 9 | ||||
-rw-r--r-- | dendrite/dendrite-log/type | 1 |
5 files changed, 13 insertions, 0 deletions
diff --git a/dendrite/dendrite-log/consumer-for b/dendrite/dendrite-log/consumer-for new file mode 100644 index 0000000..c44ba50 --- /dev/null +++ b/dendrite/dendrite-log/consumer-for @@ -0,0 +1 @@ +dendrite-srv diff --git a/dendrite/dendrite-log/notification-fd b/dendrite/dendrite-log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/dendrite/dendrite-log/notification-fd @@ -0,0 +1 @@ +3 diff --git a/dendrite/dendrite-log/pipeline-name b/dendrite/dendrite-log/pipeline-name new file mode 100644 index 0000000..c4b4a0e --- /dev/null +++ b/dendrite/dendrite-log/pipeline-name @@ -0,0 +1 @@ +dendrite 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 diff --git a/dendrite/dendrite-log/type b/dendrite/dendrite-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/dendrite/dendrite-log/type @@ -0,0 +1 @@ +longrun |