aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
authorroot2019-05-19 20:12:32 +1000
committerroot2019-05-19 20:12:32 +1000
commit26c428ba953fcbc2f5eaffd84a57920f13208b5b (patch)
tree03a3040ecf275a13d1d46acafb22a12a08234768 /scripts
parentRemove double [] from the tmux tabs. (diff)
downloadopensim-SC_OLD-26c428ba953fcbc2f5eaffd84a57920f13208b5b.zip
opensim-SC_OLD-26c428ba953fcbc2f5eaffd84a57920f13208b5b.tar.gz
opensim-SC_OLD-26c428ba953fcbc2f5eaffd84a57920f13208b5b.tar.bz2
opensim-SC_OLD-26c428ba953fcbc2f5eaffd84a57920f13208b5b.tar.xz
Kill it with fire!
Diffstat (limited to 'scripts')
-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