
* Expose systemd-journal-gatewayd * Enable and start systemd-journal-gatewayd.socket * add systemd-journal-remote to requirements * add systemd-journal-remote to requirements
20 lines
657 B
Desktop File
20 lines
657 B
Desktop File
[Unit]
|
|
Description=Hass.io supervisor
|
|
Requires=docker.service dbus.service
|
|
Wants=network-online.target hassio-apparmor.service time-sync.target systemd-journal-gatewayd.socket
|
|
After=docker.service dbus.service network-online.target hassio-apparmor.service time-sync.target systemd-journal-gatewayd.socket
|
|
StartLimitIntervalSec=60
|
|
StartLimitBurst=5
|
|
ConditionPathExists=/run/dbus/system_bus_socket
|
|
ConditionPathExists=/run/docker.sock
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=5s
|
|
ExecStartPre=-%%BINARY_DOCKER%% stop hassio_supervisor
|
|
ExecStart=%%BINARY_HASSIO%%
|
|
ExecStop=-%%BINARY_DOCKER%% stop hassio_supervisor
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|