Skip to content

Commit

Permalink
Use Systemctl Command To Restart Agent (aws#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethAmazon authored Nov 29, 2022
1 parent 3472c26 commit ce2454b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/dependencies/amazon-cloudwatch-agent-ctl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ agent_start() {
if [ "${SYSTEMD}" = 'true' ]; then
systemctl daemon-reload || return
systemctl enable "${agent_name}.service" || return
service "${agent_name}" restart || return
systemctl restart "${agent_name}.service" || return
else
start "${agent_name}" || return
sleep 1
Expand Down

0 comments on commit ce2454b

Please sign in to comment.