#! /bin/sh

. "`dirname $0`/rcdefs"

# Must ignore TERM because this script has the same name as the squid
# executable.
trap '' 15

case "$1" in
  start)
    Print -n "Starting squid... "
    ${SQUID} ${SQUID_OPTIONS} &
    Print "done."
    ;;
  stop)
    Print -n "Stopping squid... "
    ${SQUID} -k shutdown
    Print "done."
    ;;
  *)
    Usage "$0"
    exit 1
esac

exit 0
