Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autostart containerized Amplify-agent after restart (reboot server) #63

Open
podguzovvasily opened this issue Sep 9, 2020 · 1 comment

Comments

@podguzovvasily
Copy link

Dear developers and community. I've installed Amplify-agent inside docker container, and agent works well. But how can I add autostart of amplify-agent when container will restarted or whole system rebooted?

P.S. I've used nginx:1.19.2 and install.sh for the agent installation. Thanks!

@miroslavrussev
Copy link

Hello there,

I needed the same thing so my current solution to this is as follows:

  1. Create a file inside /docker-entrypoint.d/ called 40-start-amplify.sh
  2. Make it executable chmod 775 /docker-entrypoint.d/40-start-amplify.sh
  3. Add the necessary command to start the agent-amplify service:
#!/bin/sh
# vim:sw=2:ts=2:sts=2:et

service amplify-agent start
  1. Save, exit and restart the container

I hope this helps!

@defanator defanator transferred this issue from another repository Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants