From: Wolfram Schneider Date: Tue, 10 Feb 2009 21:18:55 +0000 (+0000) Subject: Allow to override on the commandline the variables: X-Git-Tag: v1.1.0~39 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=f747f871c170d911519cb85165309fcfcc516970;p=pazpar2-moved-to-github.git Allow to override on the commandline the variables: pazpar2_config pazpar2_pid pazpar2_log This allow you to run more than one pazpar2 instance on a host with this start/stop script. --- diff --git a/src/pazpar2.sh b/src/pazpar2.sh index baa8c17..ab02cd6 100755 --- a/src/pazpar2.sh +++ b/src/pazpar2.sh @@ -3,10 +3,10 @@ # pazpar2.sh - pazpar2 start/stop script : ${PAZPAR2_HOME=$HOME/pazpar2} -pazpar2_program=$PAZPAR2_HOME/src/pazpar2 -pazpar2_config=$PAZPAR2_HOME/etc/pazpar2.cfg -pazpar2_pid=$PAZPAR2_HOME/pazpar2.pid -pazpar2_log=$PAZPAR2_HOME/pazpar2.log +: ${pazpar2_program=$PAZPAR2_HOME/src/pazpar2} +: ${pazpar2_config=$PAZPAR2_HOME/etc/pazpar2.cfg} +: ${pazpar2_pid=$PAZPAR2_HOME/pazpar2.pid} +: ${pazpar2_log=$PAZPAR2_HOME/pazpar2.log} command=$1; shift