Skip to content

Commit 5f1f7b2

Browse files
authored
Merge pull request #68 from default50/bash_for_systemd_unit
Keep invoking the agent from bash when using systemd
2 parents 4a53136 + bbfdf9c commit 5f1f7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.d/codedeploy-agent.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description=AWS CodeDeploy Host Agent
33

44
[Service]
55
Type=forking
6-
ExecStart=/bin/sh -a -c '[ -f /etc/profile ] && source /etc/profile; /opt/codedeploy-agent/bin/codedeploy-agent-wrapper start'
6+
ExecStart=/bin/bash -a -c '[ -f /etc/profile ] && source /etc/profile; /opt/codedeploy-agent/bin/codedeploy-agent-wrapper start'
77
ExecStop=/opt/codedeploy-agent/bin/codedeploy-agent-wrapper stop
88
RemainAfterExit=no
99
# Comment out the following line to run the agent as the codedeploy user

0 commit comments

Comments
 (0)