summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2018-05-03 15:52:09 -0400
committerMathew Robinson <chasinglogic@gmail.com>2018-05-03 15:52:14 -0400
commit91db8033a2ddc65b682d16f46fc00cde7949e9fc (patch)
treedb0a57165c064ecc70b8810b6dd020c896590d53 /rpm
parent91b4635f0987d03db4b88b632198ef9247d3b56d (diff)
downloadmongo-91db8033a2ddc65b682d16f46fc00cde7949e9fc.tar.gz
SERVER-33146 Source /etc/sysconfig/mongod in service file
Diffstat (limited to 'rpm')
-rw-r--r--rpm/mongod.service1
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