packages/net/redsocks/files/redsocks.init
florian 4b12de81eb [package] redsocks: add package
Redsocks is a daemon running on the local system, that will transparently
tunnel any TCP connection via a remote SOCKS4, SOCKS5 or HTTP proxy server. It
uses the system firewall's redirection facility to intercept TCP connections,
thus the redirection is system-wide, with fine-grained control, and does
not depend on LD_PRELOAD libraries.

Signed-off-by: Sebastian Muszynski <basti@linkt.de>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33799 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-16 15:55:51 +00:00

15 lines
264 B
Bash

#!/bin/sh /etc/rc.common
START=80
APP=redsocks
PID_FILE=/var/run/$APP.pid
start() {
start-stop-daemon -S -x $APP -p $PID_FILE -m -b -- -c /etc/redsocks.conf
}
stop() {
start-stop-daemon -K -n $APP -p $PID_FILE -s TERM
rm -rf $PID_FILE
}