slackbuilds_ponce/network/polipo/rc.polipo
2010-05-12 23:32:41 +02:00

30 lines
398 B
Bash

#!/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