This small guide will introduce you to some helpful scripts to automatically manage a palworld server, please use all scripts at your own discretion This Guide will cover the following automated functionalities.
This guide is also aimed at debian destributions based on it. (Ubuntu etc.)
- Automated PalWorld Gameserver start on server start
- Automated PalWorld Gameserver restart in case of a crash
- Automated PalWorld Gameserver restart every day at 4am
- Automated PalWorld Gameserver file backups every hour, day and week
Before you start of with this, please verify that you are indeed on a linux based server and you do have the ability to READ and TYPE. Please also read this guide once before you start so you know what you are about to do.
- Please follow all the steps from the official guide https://tech.palworldgame.com/dedicated-server-guide#linux, this guide is based on it, any deviation must be adjusted in the scripts
- This guide uses https://github.com/gorcon/rcon-cli to shutdown the Server, please download and install it in a suitable place (for example
/usr/local/bin
), the config in the scripts is located in/home/steam/rcon.yaml
, an example config has been provided - also you have to enable RCON Access and an RCON Port in your palworld config
In order to to achieve that we will use https://wiki.debian.org/systemd - check the palworld.service
file, which needs to placed at /etc/systemd/system/palworld.service
Please recheck the path to steamcmd and the PalServer.sh if it is indeed correct.
Also check the user and group - for security reasons the server should never run as user root
Then run (as root or using sudo)
systemctl daemon-reload
systemctl enable palworld
To veryfy if it works just run systemctl start palworld
(this will update and start the Gameserver)
We add to scripts anywhere on the filesystem, in my case i chose the /home/steam/ directory but finally its up to you.
Script 1: Shutdown Script (which will cause a restart thanks to our systemd entry) shutDownScript.sh
Script 2: Backup Script - which will backup every hour, will keep the last 5 copies of every hour, and will also do a daily and weekly backup backUpScript.sh
In order to achieve this we will use https://wiki.debian.org/cron
Type in (as user steam in this case) crontab -e
and edit the file that it looks like the crontab.sh
file.
This settings will cause the backUpScript.sh
to run every hour and the shutDownScript.sh
every day at 4am SERVERTIME
Then add the 2 scripts backUpScript.sh
and shutDownScript.sh
to your /home/steam
folder.
both scripts need a chmod +x
in order to be used. you can test all scripts by execting them manually
If you did everything correctly you now have the ability to backup and automatically restart your palworld Server on a Linux Server
-
Will you provide instructions for XXXXXX
- No
-
Something is not working as intended!
- Reread the guide, verify paths and check if everything is correct
Hi,
The rcon is stopping the server but not starting it automatically?