
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.
16 lines
382 B
Desktop File
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
|