mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
change mongodb service file to type=simple, and config to not fork
This commit is contained in:
parent
5fd71ddd39
commit
abb58ba0bc
2 changed files with 4 additions and 6 deletions
|
@ -9,10 +9,10 @@ bind_ip = 127.0.0.1
|
||||||
port = 27018
|
port = 27018
|
||||||
|
|
||||||
# Fork server process (false by default)
|
# Fork server process (false by default)
|
||||||
fork = true
|
# fork = true
|
||||||
|
|
||||||
# Full path to pidfile (if not set, no pidfile is created)
|
# Full path to pidfile (if not set, no pidfile is created)
|
||||||
pidfilepath = /var/run/mongodb/mongod.pid
|
# pidfilepath = /var/run/mongodb/mongod.pid
|
||||||
|
|
||||||
# Log file to send write to instead of stdout - has to be a file, not directory
|
# Log file to send write to instead of stdout - has to be a file, not directory
|
||||||
logpath = /var/log/mongodb/mongod.log
|
logpath = /var/log/mongodb/mongod.log
|
||||||
|
|
|
@ -3,12 +3,10 @@ Description=High-performance, schema-free document-oriented database
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=simple
|
||||||
User=mongodb
|
User=mongodb
|
||||||
Group=mongodb
|
Group=mongodb
|
||||||
PIDFile=/var/run/mongodb/mongod.pid
|
ExecStart=/usr/bin/mongod -f /etc/mongod.conf
|
||||||
#EnvironmentFile=/etc/sysconfig/mongodb
|
|
||||||
ExecStart=/usr/bin/mongod --fork -f /etc/mongod.conf
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue