Add few more s6 services

This commit is contained in:
Alex D. 2023-03-04 16:44:06 +00:00
parent ab094d7eda
commit 6645595e6e
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
11 changed files with 40 additions and 0 deletions

7
s6/haproxy/APKBUILD Normal file
View File

@ -0,0 +1,7 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-s6.template
pkgver=2023.03.04.01
pkgrel=0

1
s6/haproxy/env/CFGFILE vendored Normal file
View File

@ -0,0 +1 @@
/etc/redxen/haproxy/main.cfg

8
s6/haproxy/rc/run Executable file
View File

@ -0,0 +1,8 @@
#!/bin/execlineb -P
s6-envdir -I /etc/s6/env/redxen.haproxy
importas -i CFGFILE CFGFILE
s6-envdir -i /etc/s6/env/path
emptyenv -p
haproxy -db -f $CFGFILE

1
s6/haproxy/rc/type Normal file
View File

@ -0,0 +1 @@
longrun

7
s6/prometheus/APKBUILD Normal file
View File

@ -0,0 +1,7 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-s6.template
pkgver=2023.03.04.01
pkgrel=0

1
s6/prometheus/env/CFGFILE vendored Normal file
View File

@ -0,0 +1 @@
/etc/redxen/prometheus/config.yaml

1
s6/prometheus/env/LISTEN_ADDR vendored Normal file
View File

@ -0,0 +1 @@
[::]:7554

1
s6/prometheus/env/STORAGE_PATH vendored Normal file
View File

@ -0,0 +1 @@
/var/lib/prometheus/data

1
s6/prometheus/env/STORAGE_RETENTION vendored Normal file
View File

@ -0,0 +1 @@
30d

11
s6/prometheus/rc/run Executable file
View File

@ -0,0 +1,11 @@
#!/bin/execlineb -P
s6-envdir -I /etc/s6/env/redxen.prometheus
importas -i CFGFILE CFGFILE
importas -i LISTEN_ADDR LISTEN_ADDR
importas -i STORAGE_PATH STORAGE_PATH
importas -i STORAGE_RETENTION STORAGE_RETENTION
s6-envdir -i /etc/s6/env/path
emptyenv -p
prometheus --web.listen-address=${LISTEN_ADDR} --config.file=${CFGFILE} --storage.tsdb.path=${STORAGE_PATH} --storage.tsdb.retention.time=${STORAGE_RETENTION}

1
s6/prometheus/rc/type Normal file
View File

@ -0,0 +1 @@
longrun