Fix godoor service restart

This commit is contained in:
Arti Zirk 2023-10-13 16:08:06 +03:00
parent 3f8f141d94
commit 9bcffbaff3

View File

@ -25,9 +25,9 @@
ExecStart=ctr run --rm --pid-file=/run/%N.pid --privileged --read-only --env-file=/etc/godoor --env=KDOORPI_API_ALLOWED=https://doorboy-proxy.k-space.ee/allowed --env=KDOORPI_API_LONGPOLL=https://doorboy-proxy.k-space.ee/longpoll --env=KDOORPI_API_SWIPE=https://doorboy-proxy.k-space.ee/swipe --env=KDOORPI_DOOR=%H --net-host --net-host --cwd /app $IMAGE %N /godoor ExecStart=ctr run --rm --pid-file=/run/%N.pid --privileged --read-only --env-file=/etc/godoor --env=KDOORPI_API_ALLOWED=https://doorboy-proxy.k-space.ee/allowed --env=KDOORPI_API_LONGPOLL=https://doorboy-proxy.k-space.ee/longpoll --env=KDOORPI_API_SWIPE=https://doorboy-proxy.k-space.ee/swipe --env=KDOORPI_DOOR=%H --net-host --net-host --cwd /app $IMAGE %N /godoor
ExecStopPost=ctr task rm %N ExecStopPost=ctr task rm %N
ExecStopPost=ctr c rm %N ExecStopPost=ctr c rm %N
Restart=always
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
Restart=always
- name: Enable Doorboy controller - name: Enable Doorboy controller
ansible.builtin.systemd: ansible.builtin.systemd:
state: restarted state: restarted