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
  • Loading branch information
seemethere authored Aug 23, 2018
2 parents 8f1a3c9 + f00df1b commit 122405b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containerd.mk
Original file line number Diff line number Diff line change
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 122405b

Please sign in to comment.