Re: [squid-users] Squid startup scripts.

From: Tek Bahadur Limbu <teklimbu@dont-contact.us>
Date: Wed, 06 Feb 2008 22:34:07 +0545

Hi Dave,

Dave Coventry wrote:
> Hi,
>
> Still battling to get Squid up and running...
>
> I have installed Squid3.0 from source into /usr/local/squid.
>
> However, there is no startup script to place into /etc/init.d/
>
> Surely it's not simply a case of placing the following into a file
> called squid, making it executable, update-rc, etc?
>
> #!/bin/sh
> start () {
> /usr/local/squid/sbin/squid
> }

Try:

vi /etc/init.d/squid

#!/bin/sh

         echo -n ' Squid '

         case "$1" in
         start)

         /usr/local/squid/sbin/squid -D
         ;;
         stop)
         /usr/local/squid/sbin/squid -k shutdown
         ;;
         restart)
         /usr/local/squid/sbin/squid -k reconfigure
         ;;
         *)
         echo "Usage: `basename $0` {start|stop|restart}"
         ;;
         esac

Hope that helps.

Thanking you...

>
>
>
>

-- 
With best regards and good wishes,
Yours sincerely,
Tek Bahadur Limbu
System Administrator
(TAG/TDG Group)
Jwl Systems Department
Worldlink Communications Pvt. Ltd.
Jawalakhel, Nepal
http://www.wlink.com.np
http://teklimbu.wordpress.com
Received on Wed Feb 06 2008 - 09:50:10 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:04 MST