add s6 services to distrib

This commit is contained in:
Jacob Moody
2021-08-28 18:14:47 -06:00
parent 9b6ec04ca5
commit 9f7ead07a5
10 changed files with 29 additions and 0 deletions

View File

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

View File

@@ -0,0 +1 @@
3

View File

@@ -0,0 +1 @@
ergo

9
distrib/s6/ergo-log/run Normal file
View File

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

1
distrib/s6/ergo-log/type Normal file
View File

@@ -0,0 +1 @@
longrun