Permalink
Browse files

Implementing the -p PID file arg and using in the init file.

  • Loading branch information...
1 parent 49a369d commit 717db0fa5d2e917de758f0dec2f6b3f8e9e881f3 @sbisbee sbisbee committed Sep 22, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/main/bin/couchdb-lucene
  2. +1 −1 src/main/tools/etc/init.d/couchdb-lucene
View
1 src/main/bin/couchdb-lucene
@@ -79,6 +79,7 @@ parseOptions()
-h) shift; printUsage; exit $SCRIPT_OK;;
-o) shift; STDOUT_FILE="$1"; shift;;
-b) shift; BACKGROUND=true;;
+ -p) shift; PID_FILE="$1"; shift;;
--) shift; break;;
*) echo "Unknown option: $1" >&2; exit $SCRIPT_ERROR;;
esac
View
2 src/main/tools/etc/init.d/couchdb-lucene
@@ -20,7 +20,7 @@ DESC="CouchDB Lucene index"
NAME="couchdb-lucene"
PIDFILE=/var/run/$NAME/$NAME.pid
DAEMON=$NAME
-DAEMON_ARGS="-o /var/log/couchdb-lucene.log -b"
+DAEMON_ARGS="-o /var/log/couchdb-lucene.log -b -p $PIDFILE"
SCRIPTNAME=`basename $0`
LSB_LIBRARY=/lib/lsb/init-functions

0 comments on commit 717db0f

Please sign in to comment.