This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Script to check for available memory | |
#If available memory is below certain amount, it will initiate shutdown | |
#The shutdown is done via rcon https://github.com/gorcon/rcon-cli | |
#You can get this script to be execute in crontab | |
#!/bin/bash | |
lock_file="/home/Palworld/Palworld/check_mem_leak.lock" | |
rcon_yaml="/home/Palworld/Palworld/rcon.yaml" | |
rcon="/home/Palworld/Palworld/rcon" |