#!/bin/sh
#
# Startup script for FilterProxy
# Source function library.
. /etc/rc.d/init.d/functions
FILTERPROXYHOME=/home/filterproxy
OLDDIR=$PWD
# See how we were called.
case "$1" in
start)
echo -n "Starting FilterProxy: "
cd $FILTERPROXYHOME
su -s /bin/sh filterproxy -c ./FilterProxy.pl
cd $OLDDIR
echo
;;
stop)
echo -n "Shutting down FilterProxy: "
cd $FILTERPROXYHOME
su -s /bin/sh filterproxy -c "./FilterProxy.pl -k"
cd $OLDDIR
echo
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
=1=
THE END |