From 75b8362a0d6c0a7e83c753a5ad34947dbb38d142 Mon Sep 17 00:00:00 2001 From: Christian Willsm Date: Sat, 27 Nov 2021 16:35:50 +0100 Subject: [PATCH] byceps worker service --- systemd/system/byceps-worker.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd/system/byceps-worker.service diff --git a/systemd/system/byceps-worker.service b/systemd/system/byceps-worker.service new file mode 100644 index 0000000..0b03931 --- /dev/null +++ b/systemd/system/byceps-worker.service @@ -0,0 +1,15 @@ +[Unit] +Description=Byceps worker for %i site +After=network-online.target +Requires=postgresql.service +After=postgresql.service + +[Service] +User="GROUP" +Group="USER" +Type=simple +WorkingDirectory=/srv/byceps +ExecStart=/bin/sh -c ". venv/bin/activate; export BYCEPS_CONFIG=/srv/byceps/config/%i_config.py; exec ./worker.py >> /var/log/byceps/worker.log" + +[Install] +WantedBy=multi-user.target \ No newline at end of file