From c3f315d96a81b21f8d38f4fa83b1c38acbfbc9ac Mon Sep 17 00:00:00 2001 From: Peter Drake Date: Fri, 19 Nov 2021 11:31:00 -0500 Subject: [PATCH] Move After to proper systemd unit file section. --- init.d/codedeploy-agent.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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