r/frigate: Restart service if it fails

Sometimes, Frigate crashes in situations that should be recoverable or
temporary.  For example, it will fail to start if the MQTT server is
unreachable initially, and does not attempt to connect more than once.
To avoid having to manually restart the service once the MQTT server is
ready, we can configure the systemd unit to enable automatic restarts.
btop
Dustin 2022-08-22 20:08:09 -05:00
parent 1834f9a108
commit 2ca92f68f7
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ ExecStart=/usr/bin/podman run \
--shm-size {{ frigate_shm_size }}m \
{% endif %}
docker.io/blakeblackshear/frigate:{{ frigate_image_tag }}
Restart=always
ProtectSystem=full
{% if ansible_distribution == 'Fedora' and ansible_distribution_version|int >= 36 %}
TemporaryFileSystem=/etc/containers/networks