Skip to content

Commit

Permalink
add couchdb restart fix (use kill -9 after updated admin info.)
Browse files Browse the repository at this point in the history
  • Loading branch information
akumpf authored and alejandro committed Jun 8, 2012
1 parent f37f5a6 commit 2929815
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nodester_auto.sh
Expand Up @@ -125,19 +125,18 @@ case $whoami in
echo "No need to update /etc/couchdb/local.ini, Looks like nodester change was already made."
echo "";
else
# code if not found
# code if not found
/etc/init.d/couchdb stop;
couchdb -k;
# FORCE KILL COUCHDB (this gets around the kill -1 issue reported)
ps -U couchdb -o pid= | xargs kill -9
sleep 2;
echo "adding nodester admin account [nodester:password] to CouchDB";
echo "nodester = password" >> /etc/couchdb/local.ini
#nano /etc/couchdb/local.ini
/etc/init.d/couchdb restart;
sleep 2;
#couchdb
fi
/etc/init.d/couchdb status
#couchdb -b
sleep 1;

echo ${BLDCYA};
Expand Down

0 comments on commit 2929815

Please sign in to comment.