mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
26 lines
470 B
Text
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 $?
|
|
}
|