X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fprocesses%2Fprocess_manager.sh;h=48737e471867db33d80ed39a482a704f0ac03b59;hb=114c4d0b2dcaebe6bab3a24ad07483c5bacc7ece;hp=548f2593e083168f648c27f998792b59710a4dfa;hpb=0e939702f5e995f0433fad7e9bbb275800d633ec;p=feisty_meow.git diff --git a/scripts/processes/process_manager.sh b/scripts/processes/process_manager.sh index 548f2593..48737e47 100644 --- a/scripts/processes/process_manager.sh +++ b/scripts/processes/process_manager.sh @@ -52,7 +52,7 @@ function nechung() { start_background_action \ 'echo "your nechung oracle pronouncement of the moment..."' \ - '$BINDIR/nechung' + '$FEISTY_MEOW_BINARIES/nechung' } function sum_dir() @@ -80,10 +80,16 @@ function wait_on_backgrounders() echo "done waiting, background process count is down to $bg_count." } +#hmmm: the demo app here raises some concerns--how do we know the bg count is right? +# what if something died and we didn't check it? +# will the thing that looks at bg count adjust it if there are actually no waiting processes? + # happily launches off different actions as background processes. launcher_demonstrator() { - while true; do + # run a limited number of loops, since we don't want to do this forever. + local loops=50 + while ((loops-- > 0)); do # pick a thing to do. which=$(($RANDOM % 3)) #hmmm: not asynch yet! make it so!