aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/start-sim5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/start-sim b/scripts/start-sim
index a707ddf..86cc90d 100755
--- a/scripts/start-sim
+++ b/scripts/start-sim
@@ -137,6 +137,11 @@ case $(basename $0) in
137 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in thirty seconds!" Enter 137 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in thirty seconds!" Enter
138 sleep 30 138 sleep 30
139 ${tmux_send}:"${title}" "shutdown" Enter 139 ${tmux_send}:"${title}" "shutdown" Enter
140 sleep 30
141 if [ -e /var/run/opensim/${tgt}.pid ]; then
142 echo "Killing it with extreme prejudice!"
143 kill -TERM `cat /var/run/opensim/${tgt}.pid`
144 fi
140 else 145 else
141 echo "Sim ${title} is not running, so not stopping." 146 echo "Sim ${title} is not running, so not stopping."
142 fi 147 fi