From ab0cd0f382db8e516e79b0f65a3b8c0d0c86bb05 Mon Sep 17 00:00:00 2001 From: Annika Wickert Date: Thu, 31 Mar 2022 13:14:11 +0200 Subject: [PATCH] Workaround some crashes with systemd unit file (#37) As we don't know all corner cases yet, we just lazy handle a crash with restarts. --- unifi_respondd.service.example | 1 + 1 file changed, 1 insertion(+) diff --git a/unifi_respondd.service.example b/unifi_respondd.service.example index a9c0532..2871269 100644 --- a/unifi_respondd.service.example +++ b/unifi_respondd.service.example @@ -7,6 +7,7 @@ Type=simple DynamicUser=yes WorkingDirectory=/opt/unifi_respondd ExecStart=/opt/unifi_respondd/respondd.py +Restart=always CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW