Reduce some of the excessive sleep times for various things

This commit is contained in:
Josh.5
2023-09-29 23:39:26 +13:00
parent c651034d13
commit 12cc16459a
5 changed files with 7 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ if [ "${current_local}" != "${USER_LOCALES}" ]; then
export LANGUAGE="${user_local}"
export LANG="${user_local}"
export LC_ALL="${user_local}" 2> /dev/null
sleep 2
sleep 0.5
locale-gen
update-locale LC_ALL="${user_local}"
else

View File

@@ -36,7 +36,6 @@ wait_for_udev() {
exit 11
fi
done
sleep 5
}
# Wait for dockerd to start

View File

@@ -19,7 +19,6 @@ trap _term SIGTERM SIGINT
# EXECUTE PROCESS:
echo "PULSEAUDIO: Starting pulseaudio service"
sleep 5
#/usr/bin/pulseaudio --disallow-module-loading --disallow-exit --exit-idle-time=-1 &
/usr/bin/pulseaudio --exit-idle-time=-1 &
pulseaudio_pid=$!

View File

@@ -19,15 +19,15 @@ _term() {
while kill -0 "$sunshine_pid"; do
kill -TERM "$sunshine_pid" 2>/dev/null
counter=$((counter + 1))
[ "$counter" -gt 2 ] && break
sleep 2
[ "$counter" -gt 8 ] && break
sleep 0.5
done
counter=0
while kill -0 "$sunshine_pid"; do
kill -KILL "$sunshine_pid" 2>/dev/null
counter=$((counter + 1))
[ "$counter" -gt 2 ] && break
sleep 1
[ "$counter" -gt 4 ] && break
sleep 0.5
done
}
trap _term SIGTERM SIGINT

View File

@@ -26,8 +26,8 @@ fi
# Monitor kernel uevents
udevadm monitor &
monitor_pid=$!
# Wait for 10 seconds, then request device events from the kernel
sleep 10
# Wait for 5 seconds, then request device events from the kernel
sleep 5
udevadm trigger
# WAIT FOR CHILD PROCESS: