Skip to content

Commit

Permalink
fix poetry path in systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Nov 23, 2024
1 parent f796988 commit a8c6b37
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion systemd/cape-dist.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions systemd/cape-fstab.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion systemd/cape-processor.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions systemd/cape-rooter.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion systemd/cape-web.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion systemd/cape.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion systemd/guac-web.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8c6b37

Please sign in to comment.