From c2e443d04e0bcc837d39dcdafa95b2397ac8bc02 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 12 Apr 2018 14:15:29 +0200 Subject: [PATCH] Create hassio-supervisor.service --- .../lib/systemd/system/hassio-supervisor.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassio-supervisor.service diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassio-supervisor.service b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassio-supervisor.service new file mode 100644 index 000000000..ae5b1530e --- /dev/null +++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassio-supervisor.service @@ -0,0 +1,14 @@ +[Unit] +Description=Hass.io supervisor +Requires=docker.service +After=docker.service + +[Service] +Type=simple +Restart=always +RestartSec=5s +ExecStart=/usr/sbin/hassio-supervisor +ExecStop=-/usr/bin/docker stop hassio_supervisor + +[Install] +WantedBy=multi-user.target