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

Add cron job to relaunch instance. #39

Closed
esip-lab opened this issue Jul 20, 2018 · 5 comments
Closed

Add cron job to relaunch instance. #39

esip-lab opened this issue Jul 20, 2018 · 5 comments
Labels
ops operations

Comments

@esip-lab
Copy link
Member

Carlos and Annie will touch bases on this.

@carueda carueda added the ops operations label Jul 27, 2018
@esip-lab
Copy link
Member Author

@carueda time to touch bases on this next week?

@carueda
Copy link
Member

carueda commented Sep 7, 2018

@abburgess apologies for the delay to respond..

As a quick "solution" I just set the following cronjob under cor-admin1:

@reboot sleep 60s && docker start mongo agraph orr

It's not the most elegant or efficient but it has proved useful in the past.

systemd would be a possible better approach, could you help doing some research about using it to start docker containers (note: I assume the docker engine itself is already being started at boot time)?

@esip-lab
Copy link
Member Author

Sure, I can do some reading!

@carueda
Copy link
Member

carueda commented Oct 15, 2018

Just taking note of relevant references:

It looks like docker and docker-compose already provide settings to indicate automatic container restart.

@lewismc lewismc closed this as completed Oct 6, 2020
@carueda
Copy link
Member

carueda commented Oct 6, 2020

Thanks @lewismc for closing.

To be clear, this was actually resolved a while ago: No need for cronjob; and restart: always was added for the various services in docker-compose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ops operations
Projects
None yet
Development

No branches or pull requests

3 participants