wok diff tinyproxy/stuff/tinyproxy @ rev 25438
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 01 11:12:31 2022 +0000 (22 months ago) |
parents | ff5fd8788cd9 |
children |
line diff
1.1 --- a/tinyproxy/stuff/tinyproxy Fri May 27 01:40:23 2016 +0300 1.2 +++ b/tinyproxy/stuff/tinyproxy Thu Sep 01 11:12:31 2022 +0000 1.3 @@ -5,47 +5,50 @@ 1.4 1.5 NAME=Tinyproxy 1.6 DESC="$(_ 'Tiny Proxy')" 1.7 -DAEMON=/usr/sbin/tinyproxy 1.8 +DAEMON=/usr/bin/tinyproxy 1.9 OPTION="-c" 1.10 PIDFILE=/var/run/tinyproxy.pid 1.11 1.12 case "$1" in 1.13 - start) 1.14 - if active_pidfile $PIDFILE tinyproxy ; then 1.15 - _ '%s is already running.' $NAME 1.16 - exit 1 1.17 - fi 1.18 - action 'Starting %s: %s...' "$DESC" $NAME 1.19 - $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf 1.20 - status 1.21 - ;; 1.22 - stop) 1.23 - if ! active_pidfile $PIDFILE tinyproxy ; then 1.24 - _ '%s is not running.' $NAME 1.25 - exit 1 1.26 - fi 1.27 - action 'Stopping %s: %s...' "$DESC" $NAME 1.28 - killall tinyproxy 1.29 - rm $PIDFILE 1.30 - status 1.31 - ;; 1.32 - restart) 1.33 - if ! active_pidfile $PIDFILE tinyproxy ; then 1.34 - _ '%s is not running.' $NAME 1.35 - exit 1 1.36 - fi 1.37 - action 'Restarting %s: %s...' "$DESC" $NAME 1.38 - killall tinyproxy 1.39 - rm $PIDFILE 1.40 - sleep 2 1.41 - $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf 1.42 - status 1.43 - ;; 1.44 - *) 1.45 - emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]" 1.46 - newline 1.47 - exit 1 1.48 - ;; 1.49 + (start) 1.50 + if active_pidfile $PIDFILE tinyproxy 1.51 + then 1.52 + _ '%s is already running.' $NAME 1.53 + exit 1 1.54 + fi 1.55 + action 'Starting %s: %s...' "$DESC" $NAME 1.56 + $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf 1.57 + status 1.58 + ;; 1.59 + (stop) 1.60 + if ! active_pidfile $PIDFILE tinyproxy 1.61 + then 1.62 + _ '%s is not running.' $NAME 1.63 + exit 1 1.64 + fi 1.65 + action 'Stopping %s: %s...' "$DESC" $NAME 1.66 + killall tinyproxy 1.67 + rm $PIDFILE 1.68 + status 1.69 + ;; 1.70 + (restart) 1.71 + if ! active_pidfile $PIDFILE tinyproxy 1.72 + then 1.73 + _ '%s is not running.' $NAME 1.74 + exit 1 1.75 + fi 1.76 + action 'Restarting %s: %s...' "$DESC" $NAME 1.77 + killall tinyproxy 1.78 + rm $PIDFILE 1.79 + sleep 2 1.80 + $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf 1.81 + status 1.82 + ;; 1.83 + (*) 1.84 + emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]" 1.85 + newline 1.86 + exit 1 1.87 + ;; 1.88 esac 1.89 1.90 exit 0