0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-22 13:07:39 +01:00
mongodb/rpm/mongod.service
Mike MacCana 1663f45b4e 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>
2014-08-11 16:12:44 -04:00

13 lines
281 B
Desktop File

[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