1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/mongodb/templates/mongodb.service.j2

15 lines
351 B
Text
Raw Normal View History

2017-05-27 18:09:50 +00:00
[Unit]
Description=High-performance, schema-free document-oriented database
After=syslog.target network.target
[Service]
Type=simple
2017-05-27 18:09:50 +00:00
User=mongodb
Group=mongodb
2018-07-17 16:51:55 +00:00
ExecStartPre=/usr/bin/mongod --repair --dbpath {{ mongodb_db_path }}
2018-07-17 17:15:04 +00:00
ExecStart=/usr/bin/mongod -f {{ mongodb_conf }}
2018-07-17 16:51:55 +00:00
ExecStop=/usr/bin/killall mongod
2017-05-27 18:09:50 +00:00
[Install]
WantedBy=multi-user.target