1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/tlstunnel/tlstunnel.initd
2021-05-26 13:45:42 +00:00

26 lines
470 B
Text

#!/sbin/openrc-run
supervisor=supervise-daemon
name="tlstunnel"
description="TLS reverse proxy"
command=/usr/sbin/tlstunnel
command_user=tlstunnel:tlstunnel
extra_started_commands="reload"
description_reload="Reload configuration"
depend() {
need net localmount
after firewall
}
start_pre() {
[ -n "$error_log" ] && checkpath -f -o tlstunnel:tlstunnel "$error_log"
}
reload() {
ebegin "Reloading configuration"
$supervisor $RC_SVCNAME --signal HUP
eend $?
}