i wanted to ask you for help in setting up a cronjob, that restarts a gameserver.
By now I made a script that kills the screen of the server and then restarts it.
Looks like this:
pkill screen -U 2527
When starting the script manually by
everything works fine. But when I install it with
0 5 * * * sh /home/bf4/restart.sh
it only kills the server but won't restart it. Somehow the screen command is ignored or fails.
I hope you can help me with this issue.