diff options
Diffstat (limited to 'etc/init/couchdb.tpl.in')
-rw-r--r-- | etc/init/couchdb.tpl.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/init/couchdb.tpl.in b/etc/init/couchdb.tpl.in index b25c8685..abfb4af6 100644 --- a/etc/init/couchdb.tpl.in +++ b/etc/init/couchdb.tpl.in @@ -63,6 +63,9 @@ start_couchdb () { # Start Apache CouchDB as a background process. command="$COUCHDB -b" + if test -n "$COUCHDB_PID_FILE"; then + command="$command -p $COUCHDB_PID_FILE" + fi if test -n "$COUCHDB_STDOUT_FILE"; then command="$command -o $COUCHDB_STDOUT_FILE" fi |