Killing CouchDB on Ubuntu 10.04

I Wanted to do some maintenance and move my couchdb data files to another partition but couchdb would not stop when I called the usual stop commands:

1)sudo /etc/init.d/couchdb stop
2)sudo service couchdb stop

Found a lot of posts and out of all of them found this nice tidbit below:

ps -U couchdb -o pid= | xargs kill -9


Note: It’s not the best thing to viciously kill a process. I imagine databases usually have shutdown tasks to do, must end with current insertions, etc. I’ll post if I find a bug fix.


Chris Georgoulis

Chris Georgoulis

– Primary programming language: Java SE (SWING, JDBC), Java EE, (JSF – PrimeFaces, JPA – EclipseLink/Hibernate, EJB, CDI ),
– Secondary languages: C/C++, Web Technologies(HTML, XHTML, XML, CSS, JavaScript, jQuery, AngularJS).
– Frameworks: Android SDK, Global Sensors Network (GSN), Open Computer Vision (OpenCV).
– IDE’s: Eclipse, Visual Studio
– Other Apps: MS Office, Photoshop, Dreamweaver
– Database Design – SQL(MySQL), NoSQL(MongoDB)
– Modeling Tools: UML

More Posts