#! /bin/sh

. "`dirname $0`/rcdefs"

PATH=${PATH_SYS}

case "$1" in
  start)
    Print -n "Starting thttpd... "
    thttpd -d "${THTTPD_ROOT}" ${THTTPD_OPTIONS}
    Print "done."
    ;;
  stop)
    Print -n "Stopping thttpd... "
    Terminate thttpd
    Print "done."
    ;;
  *)
    Usage "$0"
    exit 1
esac

exit 0
