Hey Alloc,
I just wanted to give you a headsup what i noticed the other day my server was filling up with memory (there where multiple instances running of the same instance). I was reading trough the scripts and saw that theese entire isrunning is based that the pid file exists.
I looked farther where you stop the server in kill.sh there is something which i do not know if it safe but you end the process with
After
You just assume that the Pid is gone and delete the
which then never allows the function isrunning (which prevent for multiple instances to run or indicates the process still runs) to get true and you can start multiple instances. I noticed that where the server crashed you killed the server the script said it was killed but ir was still in the process list and i could start another process caused than there to be 2.
Maybe if you get time you can look into that or just add an PS AUX there example:
This is what i used to make sure it is Closed without trusting the start stop daemon