docker: streamline systemd config

Remove kodi.service's indirect dependency on docker.service by changing docker.service's install target from multi-user.target to kodi.target, which is after kodi.service is started so kodi start is not delayed due to docker service and containers
Also change docker.service's type back to notify so that other services that need to depend on docker.service do not prematurely start (currently type=idle results in other services starting as soon as docker service is started but before it's fully up)
This commit is contained in:
aptalca 2023-09-27 13:13:26 -04:00 committed by GitHub
parent 5c64b9cca3
commit c95bcbff5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ Documentation=https://docs.docker.com
After=network.target
[Service]
Type=idle
Type=notify
Environment=PATH=/bin:/sbin:/usr/bin:/usr/sbin:/storage/.kodi/addons/service.system.docker/bin
ExecStartPre=/storage/.kodi/addons/service.system.docker/bin/docker-config
EnvironmentFile=-/storage/.kodi/userdata/addon_data/service.system.docker/config/docker.conf
@ -22,5 +22,5 @@ TimeoutStartSec=0
Restart=on-abnormal
[Install]
WantedBy=multi-user.target
WantedBy=kodi.target
Alias=docker.service