]>
Commit | Line | Data |
---|---|---|
3fb19a74 JK |
1 | [Unit] |
2 | Description=the Mongo Daemon, '%i' instance | |
3 | After=syslog.target network.target | |
4 | ||
5 | [Service] | |
6 | Type=simple | |
7 | EnvironmentFile=-/etc/sysconfig/mongod | |
8 | ExecStartPre=/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" | |
9 | ExecStart=/usr/bin/mongod --config /etc/mongod/%i.conf | |
10 | User=mongod | |
11 | Group=mongod | |
12 | ||
13 | [Install] | |
14 | Alias=multi-user.target.wants/mongod@default.service |