From 4d22176132f4a830ab0cc510dabbc9f8c1c362ea Mon Sep 17 00:00:00 2001 From: Parabola Date: Sat, 28 May 2011 05:45:55 +0000 Subject: Sat May 28 05:45:54 UTC 2011 --- community-staging/mongodb/mongodb.rc | 39 ------------------------------------ 1 file changed, 39 deletions(-) delete mode 100755 community-staging/mongodb/mongodb.rc (limited to 'community-staging/mongodb/mongodb.rc') diff --git a/community-staging/mongodb/mongodb.rc b/community-staging/mongodb/mongodb.rc deleted file mode 100755 index b808a2fb0..000000000 --- a/community-staging/mongodb/mongodb.rc +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# vim: syntax=sh - -. /etc/rc.conf -. /etc/rc.d/functions - -PID=`pidof /usr/bin/mongod` -case "$1" in - start) - stat_busy "Starting mongodb" - [ -z "$PID" ] && /bin/su mongodb -s /bin/bash -c "/usr/bin/mongod --config /etc/mongodb.conf &" > /var/log/mongod 2>&1 - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon mongodb - stat_done - fi - ;; - stop) - stat_busy "Stopping mongodb" - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon mongodb - while [ ! -z "$(pidof /usr/bin/mongod)" ]; do - sleep 1; - done - stat_done - fi - ;; - restart) - $0 stop - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 -- cgit v1.2.3-54-g00ecf