Add systemd Startup Script For CouchDB

  • 4

Add systemd Startup Script For CouchDB

Get Social!

couchdb-whiteCurrently, version 2.0 of CouchDB doesn’t come with any form of startup script. I’m sure that as the CouchDB 2 branch becomes more mature and it’s added to the various software repositories startup scripts will be shipped as standard, but until then we have to make do.

The below script is a systemd startup script with a cat command to create the file with the required content in the systemd config directories. Run the below script to create the startup file. You’ll need to change /usr/bin/couchdb to be the location of your couchdb executable.

You’ll then need to reload the systemd daemon and add the couchdb service to the startup routine. Run the below commands to enable CouchDB at machine startup.




13-Feb-2017 at 1:49 pm

Thankx, worked :)


14-Feb-2017 at 10:45 am

Autostart on reboot didn’t work yet. I had to add the lines:


to the file. After this “enable” created a symlink in /etc/systemd/system/


    14-Feb-2017 at 10:50 am

    Thanks for the info, Dennis.


17-Apr-2017 at 9:00 pm

Great article!
This worked for me, but only by changing the user to root. I was wondering how you were able to run this as couchdb.

Leave a Reply

Visit our advertisers


Visit our advertisers