diff --git a/systemd/cape-dist.service b/systemd/cape-dist.service index acfcfbc2772..0338e431104 100644 --- a/systemd/cape-dist.service +++ b/systemd/cape-dist.service @@ -4,7 +4,7 @@ Documentation=https://github.com/kevoreilly/CAPEv2 [Service] WorkingDirectory=/opt/CAPEv2/utils/ -ExecStart=/usr/bin/python3 -m poetry run python dist.py -ef +ExecStart=/etc/poetry/bin/poetry run python dist.py -ef User=cape Group=cape Restart=always diff --git a/systemd/cape-fstab.service b/systemd/cape-fstab.service index 958e375230f..925a97f935c 100644 --- a/systemd/cape-fstab.service +++ b/systemd/cape-fstab.service @@ -4,8 +4,8 @@ Documentation=https://github.com/kevoreilly/CAPEv2 [Service] WorkingDirectory=/opt/CAPEv2/utils/ -ExecStartPre=/usr/bin/python3 -m poetry config cache-dir /opt/CAPEv2/.cache/pypoetry -ExecStart=/usr/bin/python3 -m poetry run python fstab.py -g cape +ExecStartPre=/etc/poetry/bin/poetry config cache-dir /opt/CAPEv2/.cache/pypoetry +ExecStart=/etc/poetry/bin/poetry run python fstab.py -g cape User=root Group=root Restart=always diff --git a/systemd/cape-processor.service b/systemd/cape-processor.service index cfd42915709..efb27ece5c2 100644 --- a/systemd/cape-processor.service +++ b/systemd/cape-processor.service @@ -6,7 +6,7 @@ After=cape-rooter.service [Service] WorkingDirectory=/opt/CAPEv2/utils/ -ExecStart=/usr/bin/python3 -m poetry run python process.py -p7 auto -pt 900 +ExecStart=/etc/poetry/bin/poetry run python process.py -p7 auto -pt 900 User=cape Group=cape Restart=always diff --git a/systemd/cape-rooter.service b/systemd/cape-rooter.service index 3f6d9985668..1cdb28f6646 100644 --- a/systemd/cape-rooter.service +++ b/systemd/cape-rooter.service @@ -6,8 +6,8 @@ After=syslog.target network.target [Service] WorkingDirectory=/opt/CAPEv2/utils/ -ExecStartPre=/usr/bin/python3 -m poetry config cache-dir /opt/CAPEv2/.cache/pypoetry -ExecStart=/usr/bin/python3 -m poetry run python rooter.py -g cape +ExecStartPre=/etc/poetry/bin/poetry -m poetry config cache-dir /opt/CAPEv2/.cache/pypoetry +ExecStart=/etc/poetry/bin/poetry -m poetry run python rooter.py -g cape User=root Group=root Restart=always diff --git a/systemd/cape-web.service b/systemd/cape-web.service index e4fee3e25a1..71b817935d1 100644 --- a/systemd/cape-web.service +++ b/systemd/cape-web.service @@ -6,7 +6,7 @@ After=cape-rooter.service [Service] WorkingDirectory=/opt/CAPEv2/web -ExecStart=/usr/bin/python3 -m poetry run python manage.py runserver_plus 0.0.0.0:8000 --traceback --keep-meta-shutdown +ExecStart=/etc/poetry/bin/poetry run python manage.py runserver_plus 0.0.0.0:8000 --traceback --keep-meta-shutdown User=cape Group=cape Restart=always diff --git a/systemd/cape.service b/systemd/cape.service index 26bbbac3b40..2b1da435d16 100644 --- a/systemd/cape.service +++ b/systemd/cape.service @@ -6,7 +6,7 @@ After=cape-rooter.service [Service] WorkingDirectory=/opt/CAPEv2/ -ExecStart=/usr/bin/python3 -m poetry run python cuckoo.py +ExecStart=/etc/poetry/bin/poetry run python cuckoo.py User=cape Group=cape Restart=always diff --git a/systemd/guac-web.service b/systemd/guac-web.service index f490f94ca95..ea63e64fe07 100644 --- a/systemd/guac-web.service +++ b/systemd/guac-web.service @@ -3,7 +3,7 @@ Description=Guacamole ASGI app [Service] WorkingDirectory=/opt/CAPEv2/web -ExecStart=/usr/bin/poetry run gunicorn --bind 127.0.0.1:8008 web.asgi -t 180 -w 4 -k uvicorn.workers.UvicornWorker --capture-output --enable-stdio-inheritance +ExecStart=/etc/poetry/bin/poetry run gunicorn --bind 127.0.0.1:8008 web.asgi -t 180 -w 4 -k uvicorn.workers.UvicornWorker --capture-output --enable-stdio-inheritance User=cape Group=cape Restart=always