]> git.lizzy.rs Git - elidragon_v2.git/blob - scripts/restart.sh
Update scripts to make mapserver function properly the first time
[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                 loop_worlds restart_world
10                 restart_multiserver
11                 restart_mapserver
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