Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #156 from andrewhsu/act
Browse files Browse the repository at this point in the history
[master] use systemctl is-active to check for containerd
Upstream-commit: 122405b
Component: packaging
  • Loading branch information
seemethere committed Aug 23, 2018
2 parents 66e527d + 5fdb130 commit f5a5c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/packaging/containerd.mk
Expand Up @@ -4,7 +4,7 @@ CONTAINERD_PROXY_COMMIT=82ae3d13e91d062dd4853379fe018638023c8da2
CONTAINERD_SHIM_PROCESS_IMAGE=docker.io/docker/containerd-shim-process:ff98a47

# If containerd is running use that socket instead
ifeq ($(shell systemctl status containerd 2>/dev/null >/dev/null && echo -n "yes"), "yes")
ifeq ("$(shell systemctl is-active containerd)", "active")
CONTAINERD_SOCK:=/var/run/containerd/containerd.sock
else
CONTAINERD_SOCK:=/var/run/docker/containerd/docker-containerd.sock
Expand Down

0 comments on commit f5a5c09

Please sign in to comment.