1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/traefik/traefik.initd
Jakub Panek c805697eb7 community/traefik: bake version in executable, fix config and service
* log to file
* depend on net, start after firewall
* use default log level
* disable telemetry and new version check
2022-12-28 09:40:18 +01:00

25 lines
464 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
name="Traefik"
description="Modern reverse proxy and load balancer"
command="/usr/sbin/traefik"
command_args="$traefik_opts"
command_user="traefik:traefik"
description_healthcheck="Check health status by calling /ping endpoint"
healthcheck_timer=30
depend() {
need net
after firewall
}
healthcheck() {
$command healthcheck >/dev/null
}
start_pre() {
checkpath -d -m 0775 -o $command_user /var/log/traefik
}