File tree 3 files changed +4
-3
lines changed
amazon-linux-ami-integrated
generic-deb-integrated/debian
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 15
15
[Unit]
16
16
Description =Amazon Elastic Container Service - container agent
17
17
Documentation =https://aws.amazon.com/documentation/ecs/
18
- Requires =docker.service
18
+ Wants =docker.service
19
19
After =docker.service
20
20
After =cloud-final.service
21
21
@@ -25,6 +25,7 @@ Restart=on-failure
25
25
RestartPreventExitStatus =5
26
26
RestartSec =10s
27
27
EnvironmentFile =-/etc/ecs/ecs.config
28
+ ExecStartPre =/bin/bash -c 'if [ $(/usr/bin/systemctl is-active docker) != "active" ]; then exit 1; fi'
28
29
ExecStartPre =/usr/libexec/amazon-ecs-init pre-start
29
30
ExecStart =/usr/libexec/amazon-ecs-init start
30
31
ExecStop =/usr/libexec/amazon-ecs-init stop
Original file line number Diff line number Diff line change 15
15
[Unit]
16
16
Description =Amazon Elastic Container Service - container agent
17
17
Documentation =https://aws.amazon.com/documentation/ecs/
18
- Requires =docker.service
18
+ Wants =docker.service
19
19
After =docker.service
20
20
21
21
[Service]
Original file line number Diff line number Diff line change 15
15
[Unit]
16
16
Description =Amazon Elastic Container Service - container agent
17
17
Documentation =https://aws.amazon.com/documentation/ecs/
18
- Requires =docker.service
18
+ Wants =docker.service
19
19
After =docker.service
20
20
21
21
[Service]
You can’t perform that action at this time.
0 commit comments