More work on the init.d script...
The remaining, strange issue is for some reason you can't stop the daemon after the package install... but if you reboot, then it works. For example, this doesn't work:
sudo apt-get install couchdb sudo /etc/init.d/couchdb stop
But this does work:
sudo apt-get install couchdb <reboot> sudo /etc/init.d/couchdb stop
The same issue exists in the current Ubuntu 1.0.1 package:
https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/1024924
More work on the init.d script...
The remaining, strange issue is for some reason you can't stop the daemon after the package install... but if you reboot, then it works. For example, this doesn't work:
sudo apt-get install couchdb
sudo /etc/init.d/couchdb stop
But this does work:
sudo apt-get install couchdb
<reboot>
sudo /etc/init.d/couchdb stop
The same issue exists in the current Ubuntu 1.0.1 package:
https:/ /bugs.launchpad .net/ubuntu/ +source/ couchdb/ +bug/1024924