summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-02-22 17:06:14 +0000
committerJan Lehnardt <jan@apache.org>2009-02-22 17:06:14 +0000
commit8c933e7b3eb5cf855b603429d0d4cfb7da1730e5 (patch)
tree81a7357c54ba97d22f8c4ae6ed9930df40375bca /etc
parent611a2480bf0223911e1aee24c8d68c930a834a0f (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')
-rw-r--r--etc/init/couchdb.tpl.in3
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