nalc-server/shutdown.sh
2019-02-13 23:07:44 +01:00

12 lines
206 B
Bash

#!/bin/bash
serverpath=/home/minetest/nalc-server-0.4.17-r1
kill -s TERM $(pidof minetestserver)
sleep 10
kill -s TERM $(pidof -x $serverpath/start.sh)
$serverpath/backup.sh
$serverpath/start.sh&
exit 0