From bf3df41f4bf914ae8a800f598dd4a9479e674f13 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 11 Jul 2023 10:24:19 +0200 Subject: new systemd-service with some protections --- scripts/common/queue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/common/queue.py') diff --git a/scripts/common/queue.py b/scripts/common/queue.py index b4fa369..35abeaa 100644 --- a/scripts/common/queue.py +++ b/scripts/common/queue.py @@ -6,7 +6,10 @@ import pickle import logging from litequeue import SQLQueue -QUEUE_DB = os.environ.get('el_QUEUE_db', 'litequeue.db') +QUEUE_DB = os.environ.get('el_QUEUE_db', 'litequeue.db') +QUEUE_DIR = os.environ.get('el_QUEUE_dir', 'queue') + +QUEUE_DB = QUEUE_DIR + "/" + QUEUE_DB log = logging.getLogger(__name__) -- cgit v1.2.3