From 54fed56da4e8d0f76e8cf9eac9ac54b09c6a6390 Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Wed, 12 May 2010 23:32:41 +0200 Subject: network/polipo: Added to 12.2 repository --- network/polipo/rc.polipo | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 network/polipo/rc.polipo (limited to 'network/polipo/rc.polipo') diff --git a/network/polipo/rc.polipo b/network/polipo/rc.polipo new file mode 100644 index 0000000000..c08ae73250 --- /dev/null +++ b/network/polipo/rc.polipo @@ -0,0 +1,30 @@ +#!/bin/sh + +# Force the pid file to a known location +PIDFILE="/var/run/polipo/polipo.pid" + +start() { + echo "Starting polipo..." + polipo daemonise=true pidFile=$PIDFILE +} + +stop() { + echo "Stopping polipo..." + kill `cat $PIDFILE` +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 1 + start + ;; + *) + echo "Usage: $0 (start|stop|restart)" +esac -- cgit v1.2.3