Skip to content

Instantly share code, notes, and snippets.

@gigoh
gigoh / autossh
Last active July 27, 2021 16:38 — forked from adrianharabula/autossh
autossh startup script for openrc init on alpine linux
#!/sbin/openrc-run
#/etc/init.d/autossh
AUTOSSH_PIDFILE="/var/run/$SVCNAME.pid"
export AUTOSSH_PIDFILE
name="$SVCNAME"
command="/usr/bin/autossh"
command_args="-M 0 -f -T -N CONNECTION"
pidfile="$AUTOSSH_PIDFILE"