diff options
author | startxfr <clarue@startx.fr> | 2015-11-29 00:44:42 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2015-11-29 00:44:42 +0100 |
commit | 78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df (patch) | |
tree | 13e05e8d8217a48a0d4decf8564defee11cf35ba /Services/mongo/sx | |
parent | a490cfe364a242b1e9993225758ea6e61369e363 (diff) | |
download | phpmyadmin-78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df.tar.gz phpmyadmin-78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df.tar.bz2 phpmyadmin-78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df.tar.xz phpmyadmin-78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df.zip |
rewrite mongo and small updates in others
Diffstat (limited to 'Services/mongo/sx')
-rw-r--r-- | Services/mongo/sx/mongod.sh | 48 | ||||
-rw-r--r-- | Services/mongo/sx/mongod_run.sh | 7 |
2 files changed, 0 insertions, 55 deletions
diff --git a/Services/mongo/sx/mongod.sh b/Services/mongo/sx/mongod.sh deleted file mode 100644 index 9bb6281..0000000 --- a/Services/mongo/sx/mongod.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -export TERM=dumb -export MONGO_CONF=/etc/mongodb.conf -export MONGO_LOGDIR=/var/log/mongodb -export MONGO_DATADIR=/var/lib/mongodb - - -# Begin configuration before starting daemonized process -# and start generating host keys -function begin_config { - echo "=> Begin mongod configuration for host $HOSTNAME" - mkdir -p $MONGO_LOGDIR - mkdir -p $MONGO_DATADIR -} - -# End configuration process just before starting daemon -function end_config { - stop_server - echo "=> End mongod configuration ..." -} - -# Start the mongod server in background. Used to perform config -# against the database structure such as user creation -function start_server { - echo "===> Starting mongod server ..." - /usr/bin/mongod --config $MONGO_CONF & - sleep 8 -} - -# Stop the mongod server running in background. -function stop_server { - echo "===> Stopping mongod server ..." - /usr/bin/mongod --shutdown; sleep 2 - killall mongod; sleep 6 -} - -# Start the mongod server as a deamon and execute it inside -# the running shell -function start_daemon { - echo "=> Starting mongod daemon ..." - exec /usr/bin/mongod --config $MONGO_CONF --quiet run -} - - -if [[ "$0" == *"mongod.sh" && ! $1 = "" ]];then - eval "$@"; -fi
\ No newline at end of file diff --git a/Services/mongo/sx/mongod_run.sh b/Services/mongo/sx/mongod_run.sh deleted file mode 100644 index 6a0f018..0000000 --- a/Services/mongo/sx/mongod_run.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -source /sx/mongod.sh - -begin_config -end_config - -start_daemon
\ No newline at end of file |