diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2018-05-03 15:52:09 -0400 |
---|---|---|
committer | Mathew Robinson <chasinglogic@gmail.com> | 2018-05-03 15:52:14 -0400 |
commit | 91db8033a2ddc65b682d16f46fc00cde7949e9fc (patch) | |
tree | db0a57165c064ecc70b8810b6dd020c896590d53 /rpm | |
parent | 91b4635f0987d03db4b88b632198ef9247d3b56d (diff) | |
download | mongo-91db8033a2ddc65b682d16f46fc00cde7949e9fc.tar.gz |
SERVER-33146 Source /etc/sysconfig/mongod in service file
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/mongod.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rpm/mongod.service b/rpm/mongod.service index deb79904a65..b772ee8baf8 100644 --- a/rpm/mongod.service +++ b/rpm/mongod.service @@ -7,6 +7,7 @@ Documentation=https://docs.mongodb.org/manual User=mongod Group=mongod Environment="OPTIONS=-f /etc/mongod.conf" +EnvironmentFile=-/etc/sysconfig/mongod ExecStart=/usr/bin/mongod $OPTIONS ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb |