diff options
Diffstat (limited to 'package/polipo/files/polipo.init')
-rw-r--r-- | package/polipo/files/polipo.init | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/polipo/files/polipo.init b/package/polipo/files/polipo.init new file mode 100644 index 000000000..636159337 --- /dev/null +++ b/package/polipo/files/polipo.init @@ -0,0 +1,27 @@ +#!/bin/sh +#PKG polipo +#INIT 85 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${polipo:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + /usr/bin/polipo + ;; +stop) + kill -15 $(pgrep -f /usr/bin/polipo) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? |