mirror of
https://github.com/containerd/containerd.git
synced 2026-06-24 08:48:48 +00:00
As we are not setting `DefaultDependencies=no`, containerd.service 'will have dependencies of type Requires= and After= on sysinit.target' https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Default%20Dependencies and sysinit.target already has After=local-fs.target https://www.freedesktop.org/software/systemd/man/latest/bootup.html#System%20Manager%20Bootup Reported-by: Max Gautier <mg@max.gautier.name> Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
42 lines
1.2 KiB
Desktop File
42 lines
1.2 KiB
Desktop File
# Copyright The containerd Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
[Unit]
|
|
Description=containerd container runtime
|
|
Documentation=https://containerd.io
|
|
After=network.target dbus.service
|
|
|
|
[Service]
|
|
ExecStartPre=-/sbin/modprobe overlay
|
|
ExecStart=/usr/local/bin/containerd
|
|
|
|
Type=notify
|
|
Delegate=yes
|
|
KillMode=process
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
|
# in the kernel. We recommend using cgroups to do container-local accounting.
|
|
LimitNPROC=infinity
|
|
LimitCORE=infinity
|
|
|
|
# Comment TasksMax if your systemd version does not supports it.
|
|
# Only systemd 226 and above support this version.
|
|
TasksMax=infinity
|
|
OOMScoreAdjust=-999
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|