Skip to content

Instantly share code, notes, and snippets.

@Lu5ck
Lu5ck / check_mem_leak.sh
Last active January 24, 2024 20:07
Palworld - Dedicated Linux Server Scripts
#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"