]> git.lizzy.rs Git - elidragon_v2.git/blob - scripts/restart.sh
c83f46dab01a0d783a461edb530d119e13e66739
[elidragon_v2.git] / scripts / restart.sh
1 #! /bin/bash
2 # Elidragon v2 restart script
3 # Restart worlds, multiserver and mapserver
4
5 source scripts/common.sh
6
7 case $1 in
8         "--all")
9                 restart_mapserver
10                 restart_multiserver
11                 loop_worlds restart_world
12                 ;;
13         "--worlds")
14                 loop_worlds restart_world
15                 ;;
16         "mapserver")
17                 restart_mapserver
18                 ;;
19         "multiserver")
20                 restart_multiserver
21                 ;;
22         *)
23                 restart_world $1
24                 ;;
25 esac