]> git.pld-linux.org Git - packages/mongodb.git/blame - mongod@.service
systemd support added (including multiple instances)
[packages/mongodb.git] / mongod@.service
CommitLineData
3fb19a74
JK
1[Unit]
2Description=the Mongo Daemon, '%i' instance
3After=syslog.target network.target
4
5[Service]
6Type=simple
7EnvironmentFile=-/etc/sysconfig/mongod
8ExecStartPre=/bin/sh -c "if grep -q '^[ \t]*fork\>' /etc/mongod/%i.conf ; then echo there must be no 'fork' in /etc/mongod/%i.conf >&2 ; exit 1 ; fi"
9ExecStart=/usr/bin/mongod --config /etc/mongod/%i.conf
10User=mongod
11Group=mongod
12
13[Install]
14Alias=multi-user.target.wants/mongod@default.service
This page took 0.035977 seconds and 4 git commands to generate.