ESIPFed / cor

Community Ontology Repository
5 stars 3 forks source link

Add cron job to relaunch instance. #39

Closed esip-lab closed 4 years ago

esip-lab commented 6 years ago

Carlos and Annie will touch bases on this.

esip-lab commented 6 years ago

@carueda time to touch bases on this next week?

carueda commented 6 years ago

@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 commented 6 years ago

Sure, I can do some reading!

carueda commented 6 years ago

Just taking note of relevant references:

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

carueda commented 4 years ago

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.