slackbuilds_ponce/system/ffproxy/rc.ffproxy
Axel Bergerhoff c91d784733 system/ffproxy: Added (filtering HTTP/HTTPS proxy server).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-09-02 10:19:45 +01:00

40 lines
488 B
Bash

#!/bin/sh
# Start or stop ffproxy
# Start ffproxy
ffproxy_start()
{
if [ -x /usr/sbin/ffproxy ]
then
echo "Starting HTTP/HTTPS proxy server: /usr/sbin/ffproxy"
/usr/sbin/ffproxy -d
fi
}
# Stop ffproxy
ffproxy_stop()
{
killall ffproxy
}
# Restart ffproxy
ffproxy_restart()
{
ffproxy_stop
sleep 1
ffproxy_start
}
case "$1" in
'start')
ffproxy_start
;;
'stop')
ffproxy_stop
;;
'restart')
ffproxy_restart
;;
*)
echo "usage $0 start|stop|restart"
esac