summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike MacCana <mike.maccana@gmail.com>2014-08-11 15:12:52 +0100
committerBenety Goh <benety@mongodb.com>2014-08-11 16:12:44 -0400
commit1663f45b4e33e058a0203a81f50574a870882c34 (patch)
tree73c4268c08af4f6e6ced5241d91dd9fd74e7495b
parent4064ced405a51bedcb9da9d90f0320023e23728c (diff)
downloadmongo-1663f45b4e33e058a0203a81f50574a870882c34.tar.gz
SERVER-7285 Add mongod.service file for Linux
Add a systemd .service file. This is used in place of System V init scripts on most current Linux distributions. Closes #740 Signed-off-by: Benety Goh <benety@mongodb.com>
-rw-r--r--rpm/mongod.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/rpm/mongod.service b/rpm/mongod.service
new file mode 100644
index 00000000000..f9c7164b979
--- /dev/null
+++ b/rpm/mongod.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=High-performance, schema-free document-oriented database
+
+[Service]
+User=mongod
+Group=mongod
+Environment="OPTIONS=--quiet -f /etc/mongod.conf"
+ExecStart=/usr/local/bin/mongod $OPTIONS run
+PIDFile=/var/run/mongodb/mongod.pid
+
+[Install]
+WantedBy=multi-user.target