diff --git a/init.d/codedeploy-agent.service b/init.d/codedeploy-agent.service index 72a47342..61aac2ac 100644 --- a/init.d/codedeploy-agent.service +++ b/init.d/codedeploy-agent.service @@ -1,9 +1,9 @@ [Unit] Description=AWS CodeDeploy Host Agent +After=network.target [Service] Type=forking -After=network.target ExecStart=/bin/bash -a -c '[ -f /etc/profile ] && source /etc/profile; /opt/codedeploy-agent/bin/codedeploy-agent start' ExecStop=/opt/codedeploy-agent/bin/codedeploy-agent stop RemainAfterExit=no