#!/bin/sh

# Sep,7,2001  Kadowaki Shiro
# Modified so that TERM signal to the parent shutdowns and HUP restarts.
# Changed to use /etc/iscan/pids/ishttpd.pid for parent's pid.

# ident @(#)httpd	1.4	96/02/02 SMI

#
# IScan HTTP Proxy daemon startup
#


case "$1" in
'start')
	su - iscan -c "/etc/iscan/iscanhttpproxys start"
	;;

'stop')
	/etc/iscan/iscanhttpproxys stop
	;;

'reload')
	su - iscan -c "/etc/iscan/iscanhttpproxys reload"
	;;

*)
	echo "usage: $0 start|stop|reload"
	exit 1
	;;
esac
