1 #! /bin/sh 2 # 3 # portfwd.init 4 # 5 # $Id: portfwd.init,v 1.1.1.1 2001/05/15 00:25:13 evertonm Exp $ 6 7 portfwd=/usr/local/sbin/portfwd 8 transparent_proxy=-t 9 debug=-dd 10 config=/etc/portfwd.cfg 11 12 case "$1" in 13 start) 14 echo "Starting portfwd" 15 $portfwd $debug $transparent_proxy -c $config 16 ;; 17 stop) 18 echo "Stopping portfwd" 19 killall portfwd 20 ;; 21 *) 22 echo "usage: $0 {start|stop}" 23 exit 1 24 esac