r/unifi: Enable service auto restart

Automatically restart the UniFi service in case it crashes (which it
tends to do quite frequently).
frigate-exporter
Dustin 2024-01-21 15:48:15 -06:00
parent 1bbcbcd929
commit bba55b5182
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@
- reload systemd - reload systemd
- restart unifi - restart unifi
tags: tags:
- systemd - container
- name: flush_handlers - name: flush_handlers
meta: flush_handlers meta: flush_handlers

View File

@ -13,6 +13,7 @@ VolatileTmp=yes
Notify=yes Notify=yes
[Service] [Service]
Restart=always
PrivateTmp=yes PrivateTmp=yes
ProtectClock=yes ProtectClock=yes
ProtectHome=yes ProtectHome=yes