12 lines
206 B
Bash
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
|