Starting squid on boot up

From: <danielrod@dont-contact.us>
Date: Wed, 12 May 1999 10:22:44 +0900

I want to start squid when I boot up my machine. I have read various
recommendations on the web about how to do this, but I want to know how I
can start squid as the user "squidadmin" instead of root.

Below is one example of how to start squid on boot up. If I change
"notify='root'" to "notify='squidadmin,'" will that solve my problem?

-------------------------Begin FAQ
example-------------------------------------------------------------------
3.6 How do I start Squid automatically when the system boots?

From inittab

On systems which have an /etc/inittab file (Digital Unix, Solaris, IRIX,
HP-UX, Linux), you can add a line like this:

        sq:3:respawn:/usr/local/squid/bin/squid.sh < /dev/null >>
/tmp/squid.log 2>&1

We recommend using a squid.sh shell script, but you could instead call Squid
directly. A sameple squid.sh script is shown below:

        #!/bin/sh
        C=/usr/local/squid
        PATH=/usr/bin:$C/bin
        TZ=PST8PDT
        export PATH TZ

        notify="root"
        cd $C
        umask 022
        sleep 10
        while [ -f /tmp/nosquid ]; do
                sleep 1
        done
        /usr/bin/tail -20 $C/logs/cache.log \
                | Mail -s "Squid restart on `hostname` at `date`" $notify
        exec bin/squid -CYs
------------------------------------End FAQ
example-----------------------------------------------
Thank you.

--Daniel
Received on Tue May 11 1999 - 19:04:14 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:46:15 MST