Permalink
Browse files

add couchdb restart fix (use kill -9 after updated admin info.)

  • Loading branch information...
1 parent f37f5a6 commit 29298155c60b1721d0a8deeeac073fee8e93b2f4 @akumpf akumpf committed with alejandro Jun 6, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 nodester_auto.sh
View
@@ -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};

0 comments on commit 2929815

Please sign in to comment.