projects
/
yazproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show -V option in usage message.
[yazproxy-moved-to-github.git]
/
etc
/
yazproxyctl.sh
diff --git
a/etc/yazproxyctl.sh
b/etc/yazproxyctl.sh
index
893423f
..
2712e0d
100755
(executable)
--- a/
etc/yazproxyctl.sh
+++ b/
etc/yazproxyctl.sh
@@
-1,5
+1,4
@@
#!/bin/sh
#!/bin/sh
-# $Id: yazproxyctl.sh,v 1.1 2004-04-23 16:10:24 adam Exp $
# YAZ proxy start/stop init.d script.
#
PATH=/usr/local/bin:/bin:/usr/bin
# YAZ proxy start/stop init.d script.
#
PATH=/usr/local/bin:/bin:/usr/bin
@@
-25,7
+24,7
@@
RUNAS=nobody
# Extra args . Config file _WITH_ option
ARGS="-c config.xml"
# Extra args . Config file _WITH_ option
ARGS="-c config.xml"
-if test -n "RUNAS"; then
+if test -n "$RUNAS"; then
ARGS="-u $RUNAS $ARGS"
fi
ARGS="-u $RUNAS $ARGS"
fi
@@
-50,7
+49,7
@@
case "$1" in
;;
stop)
printf "%s" "Stopping $DESC: "
;;
stop)
printf "%s" "Stopping $DESC: "
-
+ cd $DIR
if test -f $PIDFILE; then
kill `cat $PIDFILE`
rm -f $PIDFILE
if test -f $PIDFILE; then
kill `cat $PIDFILE`
rm -f $PIDFILE
@@
-60,18
+59,23
@@
case "$1" in
fi
;;
reload)
fi
;;
reload)
+ printf "%s" "Reloading $DESC: "
+ cd $DIR
if test -f $PIDFILE; then
kill -HUP `cat $PIDFILE`
if test -f $PIDFILE; then
kill -HUP `cat $PIDFILE`
+ echo "$NAME."
+ else
+ echo "No PID $PIDFILE"
fi
fi
- ;;
+ ;;
restart|force-reload)
printf "%s" "Restarting $DESC: "
restart|force-reload)
printf "%s" "Restarting $DESC: "
+ cd $DIR
if test -f $PIDFILE; then
kill `cat $PIDFILE`
rm -f $PIDFILE
fi
sleep 1
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."
;;
$DAEMON -l $LOGFILE -p $PIDFILE $ARGS @:$PORT &
echo "$NAME."
;;