SE-2585 Add systemd override to auto restart mongod

Description

Add systemd override to auto restart mongod

This ensures mongod is always auto restarted by systemd if it crashes or exits for some
reason. The 5 second wait is to reduce issues if mongod crashes quickly after startup.

(cherry picked from commit 16ec1a6f503e0bfcfee96b6b8a87914cdae45996) This is the master port from https://github.com/edx-olive/configuration/pull/20

*Test instructions*:

*Reviewers*:

  • [ ] @itsjeyd

  • [ ] edX reviewers TBD

Assignee

Jill Vogel

Reporter

Open Source Pull Request Bot

Labels

Contributor Name

Samuel Walladge

Repo

edx/configuration

Customer

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 & 2)

Developer Experiences - Platform Services

Platform Map Area (Levels 3 & 4)

None

Blended Hour Utilization Percentage

None

Priority

Unset
Configure