aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sslh/sslh.initd
blob: d5bab81390ae174a408c6b70c4979ae8fd84ffa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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"