| Don't do double exexutions of running services. - annna - Annna the nice friend… | |
| git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| --- | |
| commit 6160cd4eb731b9c0265e41768151bd24ec9b4660 | |
| parent 432dbf3318f1f3ffdc2a20b807cd694b38ebd684 | |
| Author: Annna Robert-Houdin <[email protected]> | |
| 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(-) | |
| --- | |
| 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 | |