#!/sbin/openrc-run
name="hifz-asr-tunnel"
description="Private SSH tunnel to box1 Quran recognition worker"
supervisor=supervise-daemon
command=/usr/bin/ssh
command_args="-F /dev/null -N -T -o BatchMode=yes -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/etc/hifz-asr-tunnel/known_hosts -i /etc/hifz-asr-tunnel/key -L 127.0.0.1:8181:127.0.0.1:8181 -L 127.0.0.1:8182:127.0.0.1:8182 -L 127.0.0.1:8184:127.0.0.1:8184 -L 127.0.0.1:8185:127.0.0.1:8185 hifz-tunnel@${HIFZ_ASR_HOST}"
respawn_delay=5
respawn_max=0
depend() {
    need net
}
