Files
operating-system/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassos-supervisor.service
Stefan Agner be2a64f4d2 Add hassos-apparmor dependency to supervisor (#1140)
The supervisor container requires the "hassio-supervisor" AppArmor
profile. Make sure our AppArmor service hassos-apparmor is a dependency
of the hassos-supervisor.service.
2020-12-29 13:46:40 +01:00

22 lines
617 B
Desktop File

[Unit]
Description=HassOS supervisor
Requires=docker.service rauc.service dbus.service
Wants=network-online.target hassos-apparmor.service
After=docker.service rauc.service dbus.service network-online.target
RequiresMountsFor=/mnt/data /mnt/boot /mnt/overlay
StartLimitIntervalSec=60
StartLimitBurst=5
ConditionPathExists=/run/dbus/system_bus_socket
ConditionPathExists=/run/docker.sock
[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStartPre=-/usr/bin/docker stop hassio_supervisor
ExecStart=/usr/sbin/hassos-supervisor
ExecStop=-/usr/bin/docker stop hassio_supervisor
[Install]
WantedBy=multi-user.target