Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding the usage output

  • Loading branch information...
commit 97a9e8529735a237e234d19f7a257d184ddd1e9a 1 parent 08c0150
@sbisbee authored
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`
Please sign in to comment.
Something went wrong with that request. Please try again.