Skip to content

Commit

Permalink
Update cwa ctl agent stop to use systemctl instead of service cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
sky333999 committed Aug 5, 2022
1 parent a4a6e0c commit a98d8a2
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 @@ -158,7 +158,7 @@ agent_stop() {
fi

if [ "${SYSTEMD}" = 'true' ]; then
service "${agent_name}" stop || return
systemctl stop "${agent_name}.service" || return
else
stop "${agent_name}" || return
fi
Expand Down

0 comments on commit a98d8a2

Please sign in to comment.