mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-14 06:18:35 -07:00
add s6 services to distrib
This commit is contained in:
1
distrib/s6/ergo-log/consumer-for
Normal file
1
distrib/s6/ergo-log/consumer-for
Normal file
@@ -0,0 +1 @@
|
||||
ergo-srv
|
||||
1
distrib/s6/ergo-log/notification-fd
Normal file
1
distrib/s6/ergo-log/notification-fd
Normal file
@@ -0,0 +1 @@
|
||||
3
|
||||
1
distrib/s6/ergo-log/pipeline-name
Normal file
1
distrib/s6/ergo-log/pipeline-name
Normal file
@@ -0,0 +1 @@
|
||||
ergo
|
||||
9
distrib/s6/ergo-log/run
Normal file
9
distrib/s6/ergo-log/run
Normal 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
1
distrib/s6/ergo-log/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
Reference in New Issue
Block a user