Don't do double exexutions of running services. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 6160cd4eb731b9c0265e41768151bd24ec9b4660
(DIR) parent 432dbf3318f1f3ffdc2a20b807cd694b38ebd684
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Tue, 14 Oct 2025 23:10:02 +0200
Don't do double exexutions of running services.
Diffstat:
M annna-channel-service | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/annna-channel-service b/annna-channel-service
@@ -7,11 +7,13 @@ case "${IRC_SERVER}" in
export SERVICE_BASE="${ANNNA_MODBASE}/idlerpg"
# TODO: Fix idle service for new architecture.
# ${SERVICE_BASE}/idlerpg-channel-service.py &
- exit $?
+ exit
;;
\#bitreich-radio)
+ [ -n "$(pgrep -f radio-channel-service.sh)" ] && exit
export SERVICE_BASE="${ANNNA_MODBASE}/radio"
"${SERVICE_BASE}/radio-channel-service.sh" &
+ ;;
esac;;
esac