Skip to content

Instantly share code, notes, and snippets.

@tcelestino
Created June 27, 2017 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcelestino/33f8179da86efc8acb1f296ea64e907a to your computer and use it in GitHub Desktop.
Save tcelestino/33f8179da86efc8acb1f296ea64e907a to your computer and use it in GitHub Desktop.
restart's localtunnel when it is stop
function localtunnel {
lt -s subdomain --port port_number
}
until localtunnel; do
echo "localtunnel server crashed"
sleep 2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment