mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 07:26:28 +00:00
Improve handling with services on supervisor (#867)
* Improve handling with services on supervisor * add condition * move dbus to required, since we can't start the supervisor
This commit is contained in:
parent
ebc93692f5
commit
f219f239d8
@ -1,11 +1,12 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=HassOS supervisor
|
Description=HassOS supervisor
|
||||||
Requires=docker.service
|
Requires=docker.service rauc.service dbus.service
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=docker.service rauc.service dbus.socket network-online.target
|
After=docker.service rauc.service dbus.service network-online.target
|
||||||
RequiresMountsFor=/mnt/data /mnt/boot /mnt/overlay
|
RequiresMountsFor=/mnt/data /mnt/boot /mnt/overlay
|
||||||
StartLimitIntervalSec=60
|
StartLimitIntervalSec=60
|
||||||
StartLimitBurst=5
|
StartLimitBurst=5
|
||||||
|
ConditionPathExists=/run/dbus/system_bus_socket /run/docker.socket
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
Loading…
x
Reference in New Issue
Block a user