From f747f871c170d911519cb85165309fcfcc516970 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 10 Feb 2009 21:18:55 +0000 Subject: [PATCH] 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. --- src/pazpar2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 1.7.10.4