From e97c405ee95b6720245f81ab8197eb884484871d Mon Sep 17 00:00:00 2001 From: Jonas L Date: Mon, 28 Mar 2022 17:32:59 +0200 Subject: [PATCH] feat(worker): add service log filepath (#1640) --- worker/install/systemd/libretime-celery.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worker/install/systemd/libretime-celery.service b/worker/install/systemd/libretime-celery.service index 1233210fa..c84bb8ae0 100644 --- a/worker/install/systemd/libretime-celery.service +++ b/worker/install/systemd/libretime-celery.service @@ -2,6 +2,7 @@ Description=LibreTime Worker Service [Service] +Environment=LIBRETIME_LOG_FILEPATH=/var/log/libretime/worker.log Environment=LIBRETIME_CONFIG_FILEPATH=/etc/airtime/airtime.conf WorkingDirectory=/var/lib/libretime/worker @@ -10,7 +11,8 @@ ExecStart=/usr/local/bin/celery worker \ --config=libretime_worker.config \ --time-limit=1800 \ --concurrency=1 \ - --loglevel=INFO + --loglevel=INFO \ + --logfile=$LIBRETIME_LOG_FILEPATH User=libretime-worker Group=libretime-worker Restart=always