appsembler / configuration

a simple, but flexible, way for anyone to stand up an instance of the edX platform that is fully configured and ready-to-go
GNU Affero General Public License v3.0
14 stars 13 forks source link

override nginx systemd to retry restarts #292

Closed thraxil closed 4 years ago

thraxil commented 4 years ago

On Tahoe, nginx depends on the GCS Fuse mount to be available. When a machine boots, that mount takes a few seconds to come up. If nginx tries to start before that, it fails to read SSL certs from the mount and fails. The default systemd config sets Restart=no, so it just doesn't try again and we have to manually start it.

This should get systemd to keep trying to start nginx even if it fails at first. This should help minimize downtime when rebooting a machine.

The default values for StartLimitBurst, etc. are included but commented out since we might want to tune those once we have a bit more experience with how long it typically takes for the mount to come up.

thraxil commented 4 years ago

Travis tests are failing on unrelated components (ruby and python libraries). :shrug: