Cannot enable codeploy-agent service

0

Hello

I've installed Code Deploy agent on Amazon Linux 2023. The agent runs fine and works, but once I try to issue "sudo systemctl enable codedeploy-agent" command, I get error response "Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory"

But I really want Code Deploy Agent enabled to be sure it is running after reboot.

質問済み 1ヶ月前86ビュー
2回答
0

Hi

Since you're using systemd, the recommended approach is to use the systemctl command. Run the following command to enable the codedeploy-agent service:

sudo systemctl enable codedeploy-agent

https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-verify.html

profile picture
エキスパート
GK
回答済み 1ヶ月前
  • This is exactly what I did and why I asked because I got the result: ""Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory"

0

Nothing? Are there some alernatives? Because today, it escalated and caused troubles. Should I abandon Code Deploy Agent and move to other solution?

回答済み 9日前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ