cronjob and screen
I'm trying to create a restart script for my CS:S server, so I have a file called restart.sh which contains a part which kills the server (its running over screen) and a part which should start the server again. My script works great when I run it on my own, but with crontab it doesn't work. I already checked google and I read that I should use the -dmS tag for cronjob and screen, but it doesn't work either. I use this line to start the server again:
screen -dmS $SERVER ./srcds_run $PARAMS $PARAMS2
But the CS:S server doesn't start with cronjob. Can anybody help?