Skip to content

Instantly share code, notes, and snippets.

@maxaudron
maxaudron / server_control_script.sh
Last active August 3, 2017 15:04
Script for managing game servers using tmux to run in the background
#!/bin/bash
# ---------------------------------------------
# Script for starting and stoping game servers
# start | stop | restart | status | console
# ---------------------------------------------
# Exit Codes:
# 0 = running
# 1 = stopped
# 2 = other