X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=etc%2Fyaz-proxy.sh;fp=etc%2Fyaz-proxy.sh;h=0000000000000000000000000000000000000000;hp=c561117e147515d5d981a2f0368e245bc7735edc;hb=7767f42f8aa5359239cfe3dd99ee18b6fb23546f;hpb=95bbaf6c4ee0a2886e1b46cf6b37cee001cc2651 diff --git a/etc/yaz-proxy.sh b/etc/yaz-proxy.sh deleted file mode 100755 index c561117..0000000 --- a/etc/yaz-proxy.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/sh -# $Id: yaz-proxy.sh,v 1.2 2004-04-11 14:45:13 adam Exp $ -# YAZ proxy start/stop init.d script. -# -PATH=/usr/local/bin:/bin:/usr/bin -export PATH - -# Proxy CWD is here. Should be writable by it. -DIR=/var/yazproxy -# Proxy Path -DAEMON=/usr/local/bin/yazproxy - -# Proxy PIDFILE. Must be writable by it. -PIDFILE="/var/run/yazproxy.pid" - -# Log file -LOGFILE=/var/log/yazproxy.log - -# Port -PORT=9000 - -# Run as this user. Set to empty to keep uid as is -RUNAS=nobody - -# Extra args . Config file _WITH_ option -ARGS="-c config.xml" - -if test -n "RUNAS"; then - ARGS="-u $RUNAS $ARGS" -fi - -# Increase number of sockets, if needed -#ulimit -n 1050 - -# Name, Description (not essential) -NAME=yazproxy -DESC="YAZ proxy" - -test -d $DIR || exit 0 -test -f $DAEMON || exit 0 - -set -e - -case "$1" in - start) - printf "%s" "Starting $DESC: " - cd $DIR - $DAEMON -l $LOGFILE -p $PIDFILE $ARGS @:$PORT & - echo "$NAME." - ;; - stop) - printf "%s" "Stopping $DESC: " - - if test -f $PIDFILE; then - kill `cat $PIDFILE` - rm -f $PIDFILE - echo "$NAME." - else - echo "No PID $PIDFILE" - fi - ;; - reload) - if test -f $PIDFILE; then - kill -HUP `cat $PIDFILE` - fi - ;; - restart|force-reload) - printf "%s" "Restarting $DESC: " - if test -f $PIDFILE; then - kill `cat $PIDFILE` - rm -f $PIDFILE - fi - sleep 1 - cd $DIR - $DAEMON -l $LOGFILE -p $PIDFILE $ARGS @:$PORT & - echo "$NAME." - ;; - *) - N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 - exit 1 - ;; -esac - -exit 0