mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
31 lines
398 B
Text
31 lines
398 B
Text
|
#!/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
|