Created
September 1, 2016 12:27
-
-
Save Strykar/d66f203099da304a5cab0c6fca7a1c6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wrapper for cron to check and start TF2 server from $SCRIPT if need be | |
# cron is setup as: | |
# @reboot /home/tf2server/tf2d.sh start &> /dev/null | |
# */5 * * * * /home/tf2server/crontf2d.sh &> /dev/null | |
# | |
if ! /usr/bin/pgrep srcds ; then /home/tf2server/tf2d.sh start; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment