update
This commit is contained in:
@@ -36,13 +36,13 @@ function Quit {
|
||||
}
|
||||
|
||||
function Init {
|
||||
Print Init mongod ...
|
||||
chown -R mongod.mongod $LOG_DIR $DATA_DIR
|
||||
Print Initing mongod ...
|
||||
chown -R mongod:mongod $LOG_DIR $DATA_DIR
|
||||
rm -f /tmp/mongodb-27017.sock
|
||||
}
|
||||
|
||||
function StartProc {
|
||||
Print Start mongodb ...
|
||||
Print Starting mongodb ...
|
||||
su - mongod -c "mongod \
|
||||
--port 27017 \
|
||||
--dbpath $DATA_DIR \
|
||||
|
Reference in New Issue
Block a user