Skip to content

When the memory is insufficient, restart the Palworld game service and send notifications to Discord.

License

Notifications You must be signed in to change notification settings

SOSkr/palworld-reset-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Palworld Reset scirpt

This script validates the memory that is available to decide if it should do a reboot. Additionally, validate the running time and if it is more than the setted, will also restart the server.

Important

This script was made to work with this image and on a Linux server. however it should be able to work with any other image that enables rcon.

Server Requirements

Linux, only tested on Ubuntu 22 and Debian 12

How to use

  1. You need to change the following variables in the script

    • DISCORD_URL: // Your own webhock for Discord.
    • MEM_LIMIT=300 // Available memory limit (unit: MB), here is 300MB.
    • MAX_TIME=14400 // Maximum execution time to restart, in seconds
  2. Copy the script to the root of your server

  3. Add execute permission to a file Ex chmod +x /home/user/palworld/check_and_restart.sh

  4. Run the script ./home/user/palworld/check_and_restart.sh

About

When the memory is insufficient, restart the Palworld game service and send notifications to Discord.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages