My own (probably bad) Bash scripts to start, monitor, backup and restart a PalServer for Palworld (through a command line). I shouldn't have to say that this is obviously for fun. All the scripts assume you're just in your user folder, this isn't anything fancy :)
Restarts the server every 6 hours along with a backup every 6 hours
I've tried to make the scripts easy to change with variables, for example:
- In
backup.palserver.sh- you'll have to changeBACKUP_SCRIPT,BACKUP_FILEandPALSERVER_SAVEDto your own paths
The script uses the command ARRCON -S palworld -q "$1" to run RCON commands. You'll have to use ARRCON --host <host> --port <port> --pass <password> --save-host palworld to get RCON working
Run ./setup-palserver.sh (or bash setup-palserver.sh), this will install tmux, ARRCON and SteamCMD. The script assumes you're in your home folder (/home/user)
Make sure you've given each file execute permissions: sudo chmod +x <yourscript>, and then simply run ./monitor-palserver.sh
Run tmux attach -t PalServerMonitor to...monitor the server for RAM usage and current players
Run ./shutdown-palserver.sh
The server will save and shutdown in 1 second