Files
operating-system/buildroot-external/rootfs-overlay/usr/lib/systemd/system/hassos-supervisor.service
Stefan Agner 503117d8bf Move RuntimeDirectory to the Service section (#957)
RuntimeDirectory needs to be in the [Service] section to take effect.
2020-11-04 16:55:19 +01:00

23 lines
621 B
Desktop File

[Unit]
Description=HassOS supervisor
Requires=docker.service rauc.service dbus.service
Wants=network-online.target
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
RuntimeDirectory=supervisor
ExecStartPre=-/usr/bin/docker stop hassio_supervisor
ExecStart=/usr/sbin/hassos-supervisor
ExecStop=-/usr/bin/docker stop hassio_supervisor
[Install]
WantedBy=multi-user.target