Send HUP on reload - not INT
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 23 Oct 2003 13:25:27 +0000 (13:25 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 23 Oct 2003 13:25:27 +0000 (13:25 +0000)
src/yaz-proxy.sh

index 10fb455..e097a3e 100755 (executable)
@@ -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
@@ -65,7 +65,7 @@ case "$1" in
        ;;
   reload)
        if test -f $PIDFILE; then
-               kill -INT `cat $PIDFILE`
+               kill -HUP `cat $PIDFILE`
        fi
   ;;
   restart|force-reload)