From 3ae726fee8774d749ba3c9d69a87084a17973946 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 5 Sep 2022 10:27:23 -0400 Subject: [PATCH] Create run --- root/etc/services.d/extended_queuecleaner/run | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 root/etc/services.d/extended_queuecleaner/run diff --git a/root/etc/services.d/extended_queuecleaner/run b/root/etc/services.d/extended_queuecleaner/run new file mode 100644 index 0000000..11616a3 --- /dev/null +++ b/root/etc/services.d/extended_queuecleaner/run @@ -0,0 +1,20 @@ +#!/usr/bin/with-contenv bash +if [ "$enableQueueCleaner" != "true" ]; then + echo "QueueCleaner Script disabled, enable by setting parameter: enableQueueCleaner=true" + sleep infinity +else + echo "Waiting for Radarr to startup..." + sleep 2m +fi + +echo "Starting Script...." +for (( ; ; )); do + let i++ + + bash /config/extended/scripts/QueueCleaner.bash + + echo "Script sleeping for 15 minutes..." + sleep 15m +done + +exit $?