#!/sbin/sh

PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin

case $1 in
'start')
        if [ -x /fs/web/httpd/bin/httpsd ]; then
            /fs/web/httpd/bin/httpsd -f /fs/web/httpd/conf/httpd.conf
            echo "started httpd"
        fi
        ;;
'stop')
        pids=`cat /fs/web/httpd/logs/httpd.pid`
        if test "$pids"
        then
                kill $pids
        fi
        ;;
*)
        echo "usage: httpd {start|stop}"
        ;;
esac
