jackpine / biketag-ios

http://biketag.jackpine.me
1 stars 1 forks source link

API and DB services should start on boot #62

Closed michaelkirk closed 9 years ago

michaelkirk commented 9 years ago

A couple of times my host has been rebooted. Since I never set up services, this results in the api/db not getting restarted. These should be starting automatically on startup.

michaelkirk commented 9 years ago

Addresses this in https://github.com/jackpine/biketag-ops/tree/master/services

There is an api and a db service (systemd).

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: https://github.com/coreos/fleet/issues/940