Skip to content
Browse files

root only for now

  • Loading branch information...
1 parent 9f81e93 commit 7610fbe48250cdc506f109c33a5b59f80169c2ac @till committed
Showing with 3 additions and 5 deletions.
  1. +3 −5 couchdb/couchdb-lounge/lounge-shard-init
View
8 couchdb/couchdb-lounge/lounge-shard-init
@@ -1,7 +1,7 @@
#!/bin/bash
COUCHDB_EBS=/couchdb/couchdb/
-COUCHDB_USER=root
+COUCHDB_USER=root # We only support root right now.
COUCHDB_OPTS=" -r 5 -o /dev/null -e /dev/null"
build_pid () {
@@ -22,12 +22,11 @@ start_lounge () {
pid_file=$(build_pid $file)
- init_cmd="sudo su -c'${COUCHDB_EBS}bin/couchdb"
+ init_cmd="${COUCHDB_EBS}bin/couchdb"
init_cmd="${init_cmd} -a ${file}"
init_cmd="${init_cmd} -b"
init_cmd="${init_cmd} -p ${pid_file}"
init_cmd="${init_cmd} ${COUCHDB_OPTS}"
- init_cmd="${init_cmd} ${COUCHDB_USER}"
$init_cmd
done
@@ -36,13 +35,12 @@ start_lounge () {
stop_lounge () {
for file in $(find ${COUCHDB_EBS}etc/couchdb -type f -iname 'local-*.ini'); do
- stop_cmd="sudo su -c'${COUCHDB_EBS}bin/couchdb"
+ stop_cmd="${COUCHDB_EBS}bin/couchdb"
stop_cmd="${stop_cmd} -a ${file}"
stop_cmd="${stop_cmd} -b"
stop_cmd="${stop_cmd} -p ${pid_file}"
stop_cmd="${stop_cmd} ${COUCHDB_OPTS}"
stop_cmd="${stop_cmd} -d"
- stop_cmd="${stop_cmd} ${COUCHDB_USER}"
$stop_cmd
done

0 comments on commit 7610fbe

Please sign in to comment.
Something went wrong with that request. Please try again.