chore: redirect containerd logs to file

This commit is contained in:
Paul Pan 2024-02-19 20:25:22 +08:00
parent 1ba08698c2
commit 5c8c24f012
Signed by: Paul
GPG Key ID: D639BDF5BA578AF4

View File

@ -130,7 +130,8 @@ startup_containerd() {
sed -e 's/ / +/g' -e 's/^/+/' < /sys/fs/cgroup/cgroup.controllers \
> /sys/fs/cgroup/cgroup.subtree_control
fi
nohup containerd &
nohup containerd > /tmp/containerd.log 2>&1 &
sleep 5 # wait for containerd
log_info 'containerd started'
}