DB/MongoDB

mongodb - modify /etc/rc.d/init.d/mongod in fedora

linuxism 2014. 7. 20. 19:13


#!/bin/bash


# make /var/run/mongodb directory

/bin/mkdir /var/run/mongodb | /bin/chown mongod.mongod /var/run/mongodb


# mongod - Startup script for mongod


# chkconfig: 35 85 15

# description: Mongo is a scalable, document-oriented database.

# processname: mongod

# config: /etc/mongod.conf

# pidfile: /var/run/mongodb/mongod.pid

...