github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/debian/patches/debian-systemd-unit-environment-file.patch (about)

     1  Author: Paul R. Tagliamonte <paultag@debian.org>
     2  Last-Update: 2014-05-07
     3  Description: Use EnvironmentFile with the systemd unit file.
     4  Bug-Debian: http://bugs.debian.org/746774
     5  Forwarded: no
     6  
     7  Index: docker/engine/contrib/init/systemd/docker.service
     8  ===================================================================
     9  --- docker.orig/engine/contrib/init/systemd/docker.service
    10  +++ docker/engine/contrib/init/systemd/docker.service
    11  @@ -10,7 +10,8 @@ Type=notify
    12   # the default is not to use systemd for cgroups because the delegate issues still
    13   # exists and systemd currently does not support the cgroup feature set required
    14   # for containers run by docker
    15  -ExecStart=/usr/bin/dockerd -H fd://
    16  +EnvironmentFile=-/etc/default/docker
    17  +ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS
    18   ExecReload=/bin/kill -s HUP $MAINPID
    19   LimitNOFILE=1048576
    20   # Having non-zero Limit*s causes performance problems due to accounting overhead