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
parent
1834f9a108
commit
2ca92f68f7
|
@ -26,6 +26,7 @@ ExecStart=/usr/bin/podman run \
|
||||||
--shm-size {{ frigate_shm_size }}m \
|
--shm-size {{ frigate_shm_size }}m \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
docker.io/blakeblackshear/frigate:{{ frigate_image_tag }}
|
docker.io/blakeblackshear/frigate:{{ frigate_image_tag }}
|
||||||
|
Restart=always
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
{% if ansible_distribution == 'Fedora' and ansible_distribution_version|int >= 36 %}
|
{% if ansible_distribution == 'Fedora' and ansible_distribution_version|int >= 36 %}
|
||||||
TemporaryFileSystem=/etc/containers/networks
|
TemporaryFileSystem=/etc/containers/networks
|
||||||
|
|
Loading…
Reference in New Issue