Hello,
I've tried to make a automatic Linux Restart Script using Crontab.
My problem is that it somehow wont start the server.
I've tried multiple ways.
Those are my crontab settings to execute a script every 6 hours: Gyazo - 4d0a72c861d7fd20e51f0e1cc9781fda.png
This is my restart.sh script:
And this is my start.sh script:Code:sleep 60s ; kill -9 `ps -ef | grep RustDedicated | grep -v grep | awk '{print $$ sleep 30s ; echo "`/bin/sh /home/rust/start.sh`"
Any help is appreciated.Code:cd /home/rustscreen -t RustServer ./RustDedicated -batchmode -load -rcon.port 28016 -rcon.password 'Blank' -server.ip 'Blank' -server.hostname 'Blank' -server.port 28015 -server.identity my_server1 -server.maxplayers 150 -server.headerimage "Blank" -server.description "Blank" -server.saveinterval 120 -server.seed 864037092 -server.worldsize 4000 -server.tickrate 10 -global.maxthreads 16 -autoupdate
Starting my Linux server with my restart script
Discussion in 'Rust Discussion' started by Maurice, Mar 16, 2016.
-
You need to remove -autoupdate from your bat file as to the auto restart use TimedExecute for Rust | Oxide
-
And then just use the command "restart" ?
-
Wulf Community Admin
-
The server is not starting with crontab etc.
If I try to connect via Rusty its not working and there's no RustDedicated process... -
Wulf Community Admin
Code:cd /home/rustscreen -t RustServer ./RustDedicated -batchmode
-
Well if I use the restart.sh script by my own (via putty) it works.
Even if I use the start.sh script.
But when I use crontab to execute the restart.sh script it kills the RustDedicated process but doesnt start the server...