Move RuntimeDirectory to the Service section (#957)

RuntimeDirectory needs to be in the [Service] section to take effect.
This commit is contained in:
Stefan Agner 2020-11-04 16:55:19 +01:00 committed by GitHub
parent c92b4b54be
commit 503117d8bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,12 +8,12 @@ StartLimitIntervalSec=60
StartLimitBurst=5 StartLimitBurst=5
ConditionPathExists=/run/dbus/system_bus_socket ConditionPathExists=/run/dbus/system_bus_socket
ConditionPathExists=/run/docker.sock ConditionPathExists=/run/docker.sock
RuntimeDirectory=supervisor
[Service] [Service]
Type=simple Type=simple
Restart=always Restart=always
RestartSec=5s RestartSec=5s
RuntimeDirectory=supervisor
ExecStartPre=-/usr/bin/docker stop hassio_supervisor ExecStartPre=-/usr/bin/docker stop hassio_supervisor
ExecStart=/usr/sbin/hassos-supervisor ExecStart=/usr/sbin/hassos-supervisor
ExecStop=-/usr/bin/docker stop hassio_supervisor ExecStop=-/usr/bin/docker stop hassio_supervisor