#Linux Cron Job - Help
12 messages · Page 1 of 1 (latest)
you trying a script or gonna use RCON to send commands?
I want to get a script running so that it can auto restart the server every 6 hours
Something like these?
https://github.com/Orcicorn-ProjectZomboid/ServerScripts
Something like that yeah
Does not tell how you set it up though :/
I have been trying 3-4 different stuff and cannot get any to work :/
Ummm, it has a whole example CRON setup @ the bottom of the page...what are you 'missing'/having difficulty?
I did try and it did not work. I have been using ubuntu for 2 weeks and there is something that I am missing as I have tried 3 or 4 differnt ways
Try a single (https://crontab.guru/) MESSAGE.SH. See if the msg. shows in-game & in the logs. Put the scripts in correct location, give 'em the needed perms & setup a single CRON job to run in-game
*/5 * * * * /home/steam/scripts/includes/message.sh "Test every 5 min"
An easy to use editor for crontab schedules.
How do I setup correct perms tough?
chown -R <user>:<user> {path}