X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;ds=sidebyside;f=src%2Fyaz-proxy.sh;h=757e2406d87999feea2bcca48c71025f28033ebb;hb=3982c9ae0fea46655dfaac872ff67b6e65a26bfe;hp=10fb455991001fdde25b1d5cef64fd3653eb5cbe;hpb=7b05ec98b5a3227967c82f601a1c06ffd5c6dee6;p=yazpp-moved-to-github.git diff --git a/src/yaz-proxy.sh b/src/yaz-proxy.sh index 10fb455..757e240 100755 --- a/src/yaz-proxy.sh +++ b/src/yaz-proxy.sh @@ -18,7 +18,7 @@ DIR=/var/yaz-proxy DAEMON="/usr/local/bin/yaz-proxy" # Proxy PIDFILE. Must be writable by it. -PIDFILE="$DIR/yaz-proxy.pid" +PIDFILE="/var/run/yaz-proxy.pid" # Log file LOGFILE=/var/log/yaz-proxy.log @@ -47,13 +47,13 @@ set -e case "$1" in start) - echo -n "Starting $DESC: " + printf "%s" "Starting $DESC: " cd $DIR $DAEMON -l $LOGFILE -p $PIDFILE $ARGS @:$PORT & echo "$NAME." ;; stop) - echo -n "Stopping $DESC: " + printf "%s" "Stopping $DESC: " if test -f $PIDFILE; then kill `cat $PIDFILE` @@ -65,11 +65,11 @@ case "$1" in ;; reload) if test -f $PIDFILE; then - kill -INT `cat $PIDFILE` + kill -HUP `cat $PIDFILE` fi ;; restart|force-reload) - echo -n "Restarting $DESC: " + printf "%s" "Restarting $DESC: " if test -f $PIDFILE; then kill `cat $PIDFILE` rm -f $PIDFILE