Browse files

Adding the usage output

  • Loading branch information...
1 parent 08c0150 commit 97a9e8529735a237e234d19f7a257d184ddd1e9a @sbisbee sbisbee committed Sep 1, 2010
Showing with 17 additions and 0 deletions.
  1. +17 −0 src/main/bin/run
View
17 src/main/bin/run
@@ -8,6 +8,23 @@ PID_FILE=/var/run/couchdb-lucene/couchdb-lucene.pid
SCRIPT_OK=0
SCRIPT_ERROR=1
+printUsage()
+{
+ cat << EOF
+Usage: `$basename $0` [OPTIONS]
+
+Starts the couchdb-lucene server component.
+
+Options:
+
+ -h displays this short help message and exits
+
+ -b spawn as a background process
+ -o FILE redirect background process's stdout to FILE (defaults to none)
+ -p FILE set the background process's PID FILE
+EOF
+}
+
getPid()
{
[ -f $PID_FILE ] && PID=`cat $PID_FILE`

0 comments on commit 97a9e85

Please sign in to comment.