[problem] CodeDeploy Agent systemd service bash-completion error
Closed this issue · 0 comments
Env
OS : amazon linux 2023
code-deploy-agent : 1.6.0-49 (tokyo codedeploy s3)
aws region : tokyo
If you start systemd after installing codedeploy-agent, you will see the error below.
[stderr]bash: _parse_usage: line 16: syntax error near unexpected token ('
[stderr]bash: _parse_usage: line 16: -?(\[)+([a-zA-Z0-9?]))
[stderr]bash: error importing function definition for _parse_usage
[stderr]bash: _services: line 5: syntax error near unexpected token ('
[stderr]bash: _services: line 5: COMPREPLY=($(printf '%s\n' ${sysvdirs[0]}/!($_backup_glob|functions|README)));
I did some testing and it's not accurate, but
When starting a service with systemd, the -a option in the ExecStart=/bin/bash -a syntax appears to be a problem.
Using the -a option seems to break bash-completion.
I want to be able to use systemd well as soon as possible, including automatic reboot after installing codedeploy.