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.

demandé il y a 24 jours47 vues
1 réponse
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
EXPERT
GK
répondu il y a 24 jours
  • 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"

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions