aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/start-sim16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/start-sim b/scripts/start-sim
index 936fe13..a707ddf 100755
--- a/scripts/start-sim
+++ b/scripts/start-sim
@@ -89,7 +89,7 @@ case $(basename $0) in
89 chmod 640 ../config/Robust.ini 89 chmod 640 ../config/Robust.ini
90 ${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}" 90 ${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}"
91 else 91 else
92 ${tmux_command} new-window -dn "[${title}]" -t "${tmux_session}:${num}" "${cmd}" 92 ${tmux_command} new-window -dn "${title}" -t "${tmux_session}:${num}" "${cmd}"
93 fi 93 fi
94 fi 94 fi
95 95
@@ -121,8 +121,8 @@ case $(basename $0) in
121 if [ -e /var/run/opensim/${tgt}.pid ]; then 121 if [ -e /var/run/opensim/${tgt}.pid ]; then
122 ${tmux_send}:"[${title}]" "${cmd}" Enter 122 ${tmux_send}:"[${title}]" "${cmd}" Enter
123 # Generate the map tiles, coz the good generator leaks memory badly if you leave it turned on. 123 # Generate the map tiles, coz the good generator leaks memory badly if you leave it turned on.
124 ${tmux_send}:"[${title}]" "generate map" Enter 124 ${tmux_send}:"${title}" "generate map" Enter
125 ${tmux_send}:"[${title}]" "force gc" Enter 125 ${tmux_send}:"${title}" "force gc" Enter Enter Enter
126 else 126 else
127 echo "No OAR created for ${title}, it's not running." 127 echo "No OAR created for ${title}, it's not running."
128 fi 128 fi
@@ -130,13 +130,13 @@ case $(basename $0) in
130 130
131 "stop-sim") 131 "stop-sim")
132 if [ -e /var/run/opensim/${tgt}.pid ]; then 132 if [ -e /var/run/opensim/${tgt}.pid ]; then
133 ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in one minute!" Enter 133 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in one minute!" Enter
134 ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in one minute!" Enter 134 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in one minute!" Enter
135 sleep 30 135 sleep 30
136 ${tmux_send}:"[${title}]" "alert WARNING - Emergency shutdown in thirty seconds!" Enter 136 ${tmux_send}:"${title}" "alert WARNING - Emergency shutdown in thirty seconds!" Enter
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 else 140 else
141 echo "Sim ${title} is not running, so not stopping." 141 echo "Sim ${title} is not running, so not stopping."
142 fi 142 fi