hassio-supervised-installer/files/hassio-supervisor.service
Stefan Agner b53d0d8e5f allow to customize prefix and sysconfdir
Follow GNU directory variable names and allow to specify PREFIX (by
default /usr) and sysconfdir (by default /etc). This allows to install
hassio scripts and service to alternative locations.
2019-07-21 19:14:29 +02:00

16 lines
382 B
Desktop File

[Unit]
Description=Hass.io supervisor
Requires=%%DOCKER_SERVICE%%
After=%%DOCKER_SERVICE%% dbus.socket
[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStartPre=-%%DOCKER_BINARY%% stop hassio_supervisor
ExecStartPre=-%%DOCKER_BINARY%% stop hassio_supervisor
ExecStart=%%HASSIO_BINARY%%
ExecStop=-%%DOCKER_BINARY%% stop hassio_supervisor
[Install]
WantedBy=multi-user.target