diff options
Diffstat (limited to 'www/tinyproxy/files/tinyproxy.sh')
-rw-r--r-- | www/tinyproxy/files/tinyproxy.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/tinyproxy/files/tinyproxy.sh b/www/tinyproxy/files/tinyproxy.sh new file mode 100644 index 000000000000..ba15fe4c4e2c --- /dev/null +++ b/www/tinyproxy/files/tinyproxy.sh @@ -0,0 +1,14 @@ +#!/bin/sh +if [ $# -eq 0 -o x$1 = xstart ]; then + if [ -x %PREFIX%/sbin/tinyproxy ]; then + %PREFIX%/sbin/tinyproxy && echo ' tinyproxy' + fi +fi +if [ x$1 = xstop ]; then + if [ -f /var/run/tinyproxy.pid ]; then + kill `cat /var/run/tinyproxy.pid` + else + # oh well + killall tinyproxy + fi +fi |