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

restart api/db services automatically #63

Open
michaelkirk opened this issue Jun 9, 2015 · 1 comment
Open

restart api/db services automatically #63

michaelkirk opened this issue Jun 9, 2015 · 1 comment

Comments

@michaelkirk
Copy link
Member

Processes start on startup, but if the process dies for some reason, restarts are not currently managed - maybe due to system expecting whatever command it runs to represent the foreground process of your services. However, docker start returns as soon as the container is started, it doesn't latch onto the process, thus there is nothing for systemd to monitor.

Maybe related:
coreos/fleet#940

@michaelkirk michaelkirk added the api label Jun 9, 2015
@michaelkirk michaelkirk added this to the 1.0.0 milestone Jun 12, 2015
@michaelkirk
Copy link
Member Author

CoreOS docs on using systemd:
https://coreos.com/docs/launching-containers/launching/getting-started-with-systemd/

After glancing over that, I think maybe my problem is that I'm using docker wrong. Maybe I should be using docker run to start a new container rather than stop/starting an existing container.

In order to do this, I'll have to find some way to communicate the env specific configuration data to the container. Currently this is copied into the container during deploy. The two approaches to this that come to mind are:

  1. Do something like what we're doing in the deploy script to copy in the config on every execution of systemctl start biketag-api
  2. Put the config in a volume and mount the volume as part of the docker/run.

@michaelkirk michaelkirk modified the milestones: 1.1.0 - after app store, 1.0.0 - submit to app store Aug 28, 2015
@michaelkirk michaelkirk modified the milestones: 1.1.0, 1.3.0 Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant