1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/sslh/sslh.initd

15 lines
372 B
Text

#!/sbin/openrc-run
: ${cfgfile:="/etc/sslh.conf"}
: ${mode:="fork"}
: ${wait:=50} # milliseconds
description="Port multiplexer for SSH, HTTPS, OpenVPN etc."
command="/usr/sbin/sslh-$mode"
command_args="-F$cfgfile -f ${command_args:-$DAEMON_OPTS}"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
start_stop_daemon_args="--wait $wait"
required_files="$cfgfile"