projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54ca212
)
now using the date stringer with spaces to make log more readable.
author
Chris Koeritz
<fred@gruntose.com>
Thu, 8 Mar 2012 13:19:18 +0000
(08:19 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Thu, 8 Mar 2012 13:19:18 +0000
(08:19 -0500)
scripts/opensim/opensim_utils.sh
patch
|
blob
|
history
diff --git
a/scripts/opensim/opensim_utils.sh
b/scripts/opensim/opensim_utils.sh
index d9f4e11cde1d605a6b323f8ea1a4a9454b9fb1ce..c92ffbf97bdb2bbf9177c63102785fb2c3904729 100644
(file)
--- a/
scripts/opensim/opensim_utils.sh
+++ b/
scripts/opensim/opensim_utils.sh
@@
-35,11
+35,11
@@
function launch_screen()
{
screen_name="$1"; shift
app_name="$1"; shift
{
screen_name="$1"; shift
app_name="$1"; shift
- echo "$(date_stringer): starting $screen_name now..."
+ echo "$(date_stringer
' '
): starting $screen_name now..."
screen -L -S "$screen_name" -d -m nice -n $NICENESS_LEVEL mono "$app_name"
##why? --debug
#-console=basic
screen -L -S "$screen_name" -d -m nice -n $NICENESS_LEVEL mono "$app_name"
##why? --debug
#-console=basic
- echo "$(date_stringer): $screen_name started."
+ echo "$(date_stringer
' '
): $screen_name started."
sleep $SNOOZE_TIME
}
sleep $SNOOZE_TIME
}
@@
-62,13
+62,13
@@
function close_application()
{
screen_name="$1"; shift
process_name="$1"; shift
{
screen_name="$1"; shift
process_name="$1"; shift
- echo "$(date_stringer): stopping $screen_name now..."
+ echo "$(date_stringer
' '
): stopping $screen_name now..."
screen -r -s "$screen_name" -X quit
# we don't want to shut any other servers down until this process is really gone.
find_opensim_process $process_name
if [ ! -z "$OS_PROC_ID" ]; then
screen -r -s "$screen_name" -X quit
# we don't want to shut any other servers down until this process is really gone.
find_opensim_process $process_name
if [ ! -z "$OS_PROC_ID" ]; then
- echo "$(date_stringer): waiting for $screen_name to really shut down..."
+ echo "$(date_stringer
' '
): waiting for $screen_name to really shut down..."
sleep $SNOOZE_TIME
# check again after the snooze.
find_opensim_process $process_name
sleep $SNOOZE_TIME
# check again after the snooze.
find_opensim_process $process_name
@@
-76,7
+76,7
@@
function close_application()
find_opensim_process $process_name
#break out on timed basis.
done
find_opensim_process $process_name
#break out on timed basis.
done
- echo "$(date_stringer): $screen_name really is shut down now."
+ echo "$(date_stringer
' '
): $screen_name really is shut down now."
#do this as last ditch, above in timeout
find_opensim_process $process_name
#do this as last ditch, above in timeout
find_opensim_process $process_name
@@
-88,6
+88,6
@@
function close_application()
fi
fi
- echo "$(date_stringer): $screen_name stopped."
+ echo "$(date_stringer
' '
): $screen_name stopped."
}
}