Browse Source

add s6 services to distrib

tags/v2.8.0-rc1
Jacob Moody 2 years ago
parent
commit
9f7ead07a5
No account linked to committer's email address

+ 8
- 0
distrib/s6/README View File

@@ -0,0 +1,8 @@
1
+This directory contains s6 srv and log services for ergo.
2
+
3
+These services expect that ergo is installed to /opt/ergo,
4
+and an ergo system user that owns /opt/ergo.
5
+
6
+To install:
7
+	cp -r ergo-srv ergo-log /etc/s6/sv/
8
+	cp ergo.conf /etc/s6/config/

+ 1
- 0
distrib/s6/ergo-log/consumer-for View File

@@ -0,0 +1 @@
1
+ergo-srv

+ 1
- 0
distrib/s6/ergo-log/notification-fd View File

@@ -0,0 +1 @@
1
+3

+ 1
- 0
distrib/s6/ergo-log/pipeline-name View File

@@ -0,0 +1 @@
1
+ergo

+ 9
- 0
distrib/s6/ergo-log/run View File

@@ -0,0 +1,9 @@
1
+#!/usr/bin/execlineb -P
2
+envfile /etc/s6/config/ergo.conf
3
+importas -sCiu DIRECTIVES DIRECTIVES
4
+ifelse { test -w /var/log } {
5
+	foreground { install -d -o s6log -g s6log /var/log/ergo }
6
+	s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/ergo
7
+}
8
+foreground { install -d -o s6log -g s6log /run/log/ergo }
9
+s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/ergo

+ 1
- 0
distrib/s6/ergo-log/type View File

@@ -0,0 +1 @@
1
+longrun

+ 1
- 0
distrib/s6/ergo-srv/producer-for View File

@@ -0,0 +1 @@
1
+ergo-log

+ 4
- 0
distrib/s6/ergo-srv/run View File

@@ -0,0 +1,4 @@
1
+#!/usr/bin/execlineb -P
2
+fdmove -c 2 1
3
+execline-cd /opt/ergo
4
+s6-setuidgid ergo ./ergo run

+ 1
- 0
distrib/s6/ergo-srv/type View File

@@ -0,0 +1 @@
1
+longrun

+ 2
- 0
distrib/s6/ergo.conf View File

@@ -0,0 +1,2 @@
1
+# This configures the directives used for s6-log in the log service.
2
+DIRECTIVES="n3 s2000000"

Loading…
Cancel
Save