diff options
Diffstat (limited to 'package/tinyproxy/files')
-rw-r--r-- | package/tinyproxy/files/tinyproxy.init | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/tinyproxy/files/tinyproxy.init b/package/tinyproxy/files/tinyproxy.init new file mode 100644 index 000000000..e1b7f6f7c --- /dev/null +++ b/package/tinyproxy/files/tinyproxy.init @@ -0,0 +1,26 @@ +#!/bin/sh +#FWINIT 70 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${tinyproxy:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + tinyproxy + ;; +stop) + killall tinyproxy + ;; +restart) + sh $0 stop + sh $0 start + ;; + +*) + echo "usage: $0 {start | stop | restart}" + exit 1 +esac +exit $? |