diff --git a/packaging/amazon-linux-ami-integrated/ecs.service b/packaging/amazon-linux-ami-integrated/ecs.service index fc77b60e926..1b5145621cc 100644 --- a/packaging/amazon-linux-ami-integrated/ecs.service +++ b/packaging/amazon-linux-ami-integrated/ecs.service @@ -16,6 +16,7 @@ Description=Amazon Elastic Container Service - container agent Documentation=https://aws.amazon.com/documentation/ecs/ Wants=docker.service +PartOf=docker.service After=docker.service After=cloud-final.service diff --git a/packaging/generic-deb-integrated/debian/ecs.service b/packaging/generic-deb-integrated/debian/ecs.service index ebd43dc7a82..3dd4257df95 100644 --- a/packaging/generic-deb-integrated/debian/ecs.service +++ b/packaging/generic-deb-integrated/debian/ecs.service @@ -16,6 +16,7 @@ Description=Amazon Elastic Container Service - container agent Documentation=https://aws.amazon.com/documentation/ecs/ Wants=docker.service +PartOf=docker.service After=docker.service [Service] diff --git a/packaging/generic-rpm-integrated/ecs.service b/packaging/generic-rpm-integrated/ecs.service index 461a2323ac6..5beb05bb69b 100644 --- a/packaging/generic-rpm-integrated/ecs.service +++ b/packaging/generic-rpm-integrated/ecs.service @@ -16,6 +16,7 @@ Description=Amazon Elastic Container Service - container agent Documentation=https://aws.amazon.com/documentation/ecs/ Wants=docker.service +PartOf=docker.service After=docker.service [Service]