From 503117d8bf8c1d187e02480e296e792fe6ac8e1c Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 4 Nov 2020 16:55:19 +0100 Subject: [PATCH] Move RuntimeDirectory to the Service section (#957) RuntimeDirectory needs to be in the [Service] section to take effect. --- .../usr/lib/systemd/system/hassos-supervisor.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassos-supervisor.service b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassos-supervisor.service index 5244d717f..68f39ad89 100644 --- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassos-supervisor.service +++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassos-supervisor.service @@ -8,12 +8,12 @@ StartLimitIntervalSec=60 StartLimitBurst=5 ConditionPathExists=/run/dbus/system_bus_socket ConditionPathExists=/run/docker.sock -RuntimeDirectory=supervisor [Service] Type=simple Restart=always RestartSec=5s +RuntimeDirectory=supervisor ExecStartPre=-/usr/bin/docker stop hassio_supervisor ExecStart=/usr/sbin/hassos-supervisor ExecStop=-/usr/bin/docker stop hassio_supervisor