mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update mongodb.service
This commit is contained in:
parent
1a6d3dd8fd
commit
4e0fc10017
1 changed files with 2 additions and 0 deletions
|
@ -6,7 +6,9 @@ After=syslog.target network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
User=mongodb
|
User=mongodb
|
||||||
Group=mongodb
|
Group=mongodb
|
||||||
|
ExecStartPre=/usr/bin/mongod --repair --dbpath {{ mongodb_db_path }}
|
||||||
ExecStart=/usr/bin/mongod -f /etc/mongod.conf
|
ExecStart=/usr/bin/mongod -f /etc/mongod.conf
|
||||||
|
ExecStop=/usr/bin/killall mongod
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue