Quantcast
Channel: Active questions tagged ssh - Ask Ubuntu
Viewing all articles
Browse latest Browse all 859

How to autorun .sh

$
0
0

I have a game server that I would like to manage restarts automatically

Currently I am doing this to run the server

screen -dmS screenname // create a new screenscreen -xs screenname // attatch to screenbash ~/start.sh

Every few hours this program will crash and I'll have to SSH in to run this manually.

Is there a way I can possibly have .sh auto boot if it detects it goes down?


Viewing all articles
Browse latest Browse all 859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>