0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-19 14:12:08 +00:00
Lakka-LibreELEC/packages/addons/service/docker/source/system.d/service.system.docker.service
aptalca c95bcbff5e 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)
2023-09-27 13:13:26 -04:00

27 lines
1.0 KiB
Desktop File

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target
[Service]
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
ExecStart=/storage/.kodi/addons/service.system.docker/bin/dockerd --exec-opt native.cgroupdriver=systemd \
--log-driver=journald \
--group=root \
$DOCKER_DAEMON_OPTS \
$DOCKER_STORAGE_OPTS
ExecReload=/bin/kill -s HUP $MAINPID
TasksMax=8192
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
TimeoutStartSec=0
Restart=on-abnormal
[Install]
WantedBy=kodi.target
Alias=docker.service