From: Fred T. Hamster Date: Thu, 26 Feb 2026 14:44:25 +0000 (-0500) Subject: updated to modern opensim usage X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=875f3723f61a48251373129cd1ebed9eb69c4262;p=feisty_meow.git updated to modern opensim usage need to run with dotnet rather than mono. --- diff --git a/scripts/opensim/opensim_utils.sh b/scripts/opensim/opensim_utils.sh index 38f0a141..1827c5d1 100644 --- a/scripts/opensim/opensim_utils.sh +++ b/scripts/opensim/opensim_utils.sh @@ -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 diff --git a/scripts/opensim/zap_opensim_main.sh b/scripts/opensim/zap_opensim_main.sh index bf070e52..429fbb3b 100644 --- a/scripts/opensim/zap_opensim_main.sh +++ b/scripts/opensim/zap_opensim_main.sh @@ -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. diff --git a/scripts/opensim/zap_opensims.sh b/scripts/opensim/zap_opensims.sh index c8e89057..34a13290 100644 --- a/scripts/opensim/zap_opensims.sh +++ b/scripts/opensim/zap_opensims.sh @@ -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