View autossh.init.sh
#! /bin/sh | |
# author: Clément Désiles | |
# date: 01/08/2016 | |
# source: https://gist.github.com/suma/8134207 | |
# source: http://stackoverflow.com/questions/34094792/autossh-pid-is-not-equal-to-the-one-in-pidfile-when-using-start-stop-daemon | |
### BEGIN INIT INFO | |
# Provides: autossh | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog |