"Fossies" - the Fresh Open Source Software Archive

Member "portfwd-0.29/tools/portfwd.init" (15 May 2001, 391 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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