hassio-supervised-installer/files/hassio-supervisor.service
Stefan Agner cbae7bc68a Support custom prefix (/usr) and sysconfdir (/etc) (#27)
* use separate variable to specify Docker config location

* use templates and always adjust paths

This prepares for further customization of file locations.

* 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-26 20:52:30 +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