Skip to content

Commit

Permalink
Ensure the ecs service has started
Browse files Browse the repository at this point in the history
* The ecs service sometimes fails to start, if docker fails to start on
  first try. This adds `systemctl start ecs` to the end of ec2 userdata,
  to force start it.
  • Loading branch information
Stretch96 committed Jun 26, 2024
1 parent 4630eb5 commit 501e1b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ec2-userdata/ecs-instance.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ cd /mnt/efs
mkdir -p ${efs_dirs}
cd ..
%{~ endif}%{endif}

# Ensure the ecs service has started
sudo systemctl start ecs

0 comments on commit 501e1b6

Please sign in to comment.