diff options
author | Jan Lehnardt <jan@apache.org> | 2009-02-22 17:06:14 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-02-22 17:06:14 +0000 |
commit | 8c933e7b3eb5cf855b603429d0d4cfb7da1730e5 (patch) | |
tree | 81a7357c54ba97d22f8c4ae6ed9930df40375bca /etc/init | |
parent | 611a2480bf0223911e1aee24c8d68c930a834a0f (diff) |
Add pidfile to init script. Patch by Joshua Bronson. Thanks.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746771 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'etc/init')
-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 |