]> feistymeow.org Git - feisty_meow.git/commitdiff
updated to modern opensim usage
authorFred T. Hamster <fred@gruntose.com>
Thu, 26 Feb 2026 14:44:25 +0000 (09:44 -0500)
committerFred T. Hamster <fred@gruntose.com>
Thu, 26 Feb 2026 14:44:25 +0000 (09:44 -0500)
need to run with dotnet rather than mono.

scripts/opensim/opensim_utils.sh
scripts/opensim/zap_opensim_main.sh
scripts/opensim/zap_opensims.sh

index 38f0a141efeeb6b16d8378a84f84bd890a6643f8..1827c5d1ab92e937f320f17c5c5fec1fccc324b7 100644 (file)
@@ -8,7 +8,7 @@ source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 export MONO_THREADS_PER_CPU=1208
 
 # we run the processes with a little cpu de-prioritization.  we do not want
-# them taking over completely if there's a runaway mono tornado.
+# them taking over completely if there's a runaway mono/dotnet tornado.
 export NICENESS_LEVEL=6
 
 # a tip that supposedly helps on linux so that there won't be bizarre
@@ -24,12 +24,12 @@ export SNOOZE_TIME=6
 ulimit -s 512144
 
 # use more recent versions of mono for opensim if they're available.
-if [ -d /opt/mono-2.10/bin ]; then
-  export PATH=/opt/mono-2.10/bin:$PATH
-elif [ -d /opt/mono-2.8/bin ]; then
-  # use version 2.8 mono for opensim if it's available.
-  export PATH=/opt/mono-2.8/bin:$PATH
-fi
+#if [ -d /opt/mono-2.10/bin ]; then
+#  export PATH=/opt/mono-2.10/bin:$PATH
+#elif [ -d /opt/mono-2.8/bin ]; then
+#  # use version 2.8 mono for opensim if it's available.
+#  export PATH=/opt/mono-2.8/bin:$PATH
+#fi
 
 function launch_screen()
 {
@@ -41,7 +41,7 @@ local boguslog=$HOME/screen_junk_$(date_stringer).log
 #maybe they unbroke it in 17.10?  yes, but it requires NO space now.  *&@#*&@#
 #hmmm: bring back old version but check for ubuntu 17.04 vs 17.10 now.
 #actually they made it a new parm.  arghhh!
-  screen -L -S "$screen_name" -d -m nice -n $NICENESS_LEVEL mono "$app_name" 
+  screen -L -S "$screen_name" -d -m nice -n $NICENESS_LEVEL dotnet "$app_name" 
 #$boguslog 
 
   echo "$(date_stringer ' '): $screen_name started."
@@ -61,7 +61,7 @@ function find_opensim_process()
   if [ -z "$process_name" ]; then
     return 1  # failure in call.
   fi
-  OS_PROC_ID=$(ps wuax | grep "[0-9] mono $process_name" | grep -vi screen | sed -e "s/$(sanitized_username)  *\([0-9][0-9]*\).*/\1/" | head -n 1)
+  OS_PROC_ID=$(ps wuax | grep "[0-9] dotnet $process_name" | grep -vi screen | sed -e "s/$(sanitized_username)  *\([0-9][0-9]*\).*/\1/" | head -n 1)
 }
 
 # takes a screen name for the detached screen session and a process name that
index bf070e520631759ed39c2e59295e3b51b0e1a2d0..429fbb3bce1c9c53700df5dcdaaa82cfd0000156 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-main_pid=$( ps wuax | grep "[0-9] mono OpenSim.exe" | grep -vi screen | sed -e "s/$(sanitized_username)  *\([0-9][0-9]*\).*/\1/" )
+main_pid=$( ps wuax | grep "[0-9] dotnet OpenSim.exe" | grep -vi screen | sed -e "s/$(sanitized_username)  *\([0-9][0-9]*\).*/\1/" )
 
 if [ ! -z "$main_pid" ]; then
   echo Zapping main opensim process with id $main_pid.
index c8e890574e36f19cccf486c0eedba8f1662b97f8..34a13290d133cef8c918d356a8f8da2ffb88f80e 100644 (file)
@@ -5,15 +5,15 @@ source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 sep
 date
 echo
-echo zapping all the mono tasks...
-procs=$(psfind mono)
+echo zapping all the dotnet tasks...
+procs=$(psfind dotnet)
 echo processes marked for death: $procs
 for i in $procs; do
   kill $i
 done
 sep
-echo here are the mono processes after zapping:
-psa mono
+echo here are the dotnet processes after zapping:
+psa dotnet
 sep