diff options
author | Miguel De Anda <miguel@thedeanda.com> | 2014-07-05 07:58:12 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-07-05 07:58:12 +0700 |
commit | b46b769505f16dd3cc1cf730a96c9dc8da2a0f01 (patch) | |
tree | 8b1da35a53a6950e11370e1725ede9b1a6e682f9 /system/mongodb/rc.mongodb | |
parent | 3f7c0a401fcfa3e7e8daa0a6e33a03193965d8a0 (diff) | |
download | slackbuilds-b46b769505f16dd3cc1cf730a96c9dc8da2a0f01.tar.gz |
system/mongodb: Updated for version 2.6.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mongodb/rc.mongodb')
-rw-r--r-- | system/mongodb/rc.mongodb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/system/mongodb/rc.mongodb b/system/mongodb/rc.mongodb index d4771ecd1a..f00cc685c4 100644 --- a/system/mongodb/rc.mongodb +++ b/system/mongodb/rc.mongodb @@ -9,20 +9,26 @@ PID=/var/state/mongodb.pid LOG=/var/log/mongodb DBPATH=/var/lib/mongodb +USER=mongo +GROUP=mongo mongo_start() { - mkdir -p $DBPATH - /usr/bin/mongod \ + touch $LOG + chown $GROUP.$USER $LOG + touch $PID + chown $GROUP.$USER $PID + sudo -u $USER /usr/bin/mongod \ --dbpath=$DBPATH \ --fork \ --pidfilepath=$PID \ + --logappend \ --logpath=$LOG \ --nohttpinterface } mongo_stop() { kill `cat $PID` - rm $PID + # rm $PID } mongo_restart() { |