]> git.lizzy.rs Git - elidragon_v2.git/blobdiff - scripts/stop.sh
Update scripts to make mapserver function properly the first time
[elidragon_v2.git] / scripts / stop.sh
index 7e95f2c040d86f033b4edb97ec35223f1230de77..e83300ed0f3b72d5193805eb9693fa4eace6fb11 100755 (executable)
@@ -1,8 +1,25 @@
 #! /bin/bash
 # Elidragon v2 stop script
-# Stop one or all worlds
-# Arguments: [<worldname>]
+# Stop worlds, multiserver and mapserver
 
-source scripts/internal.sh
+source scripts/common.sh
 
-run_one_or_all stop_world $1
+case $1 in
+       "--all")
+               loop_worlds stop_world
+               stop_multiserver
+               stop_mapserver
+               ;;
+       "--worlds")
+               loop_worlds stop_world
+               ;;
+       "mapserver")
+               stop_mapserver
+               ;;
+       "multiserver")
+               stop_multiserver
+               ;;
+       *)
+               stop_world $1
+               ;;
+esac