Skip to content

Instantly share code, notes, and snippets.

@gtt116
Created April 25, 2017 02:33
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gtt116/e7abe1c32a46df85b7599fbc7a9f9f73 to your computer and use it in GitHub Desktop.
Save gtt116/e7abe1c32a46df85b7599fbc7a9f9f73 to your computer and use it in GitHub Desktop.
autossh supervisord config file
[program:autossh]
command=autossh -M0 -N
-o "ExitOnForwardFailure yes"
-o "ServerAliveInterval 15"
-o "ServerAliveCountMax 4"
-o "ControlPath none"
-o "UserKnownHostsFile=/dev/null"
-o StrictHostKeyChecking=no
-R 1234:localhost:1234
-R 4567:localhost:4567
login@example.com
autostart=true
autorestart=true
startretries=999
redirect_stderr=true
stdout_logfile = /var/log/supervisor/autossh.log
stdout_logfile_maxbytes = 10MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment