#!/bin/bash

PROGRAM=/usr/sbin/squid
RUNLEVEL=3
NEEDS="+network +remote_fs"

. /etc/init.d/smgl_init

start()
{
  echo "Starting squid..."
  /usr/sbin/squid -z -F > /dev/null 2>&1
  loadproc /usr/sbin/squid
}

reload()
{
  echo "Reloading squid..."
  /usr/sbin/squid -k reconfigure > /dev/null 2>&1
  evaluate_retval
}

stop()
{
  echo "Stopping squid..."
  /usr/sbin/squid -k shutdown > /dev/null 2>&1
  evaluate_retval
}
