AW: [squid-users] Starting squid on boot - try #3

From: Rost, Werner <Werner.Rost@dont-contact.us>
Date: Mon, 25 Feb 2002 15:44:55 +0100

1. Entry in /sbin/rc3.d

# cd /sbin/rc3.d
# ls -l *squid*
lrwxrwxrwx 1 root bin 15 Feb 7 10:21 S99squid ->
../init.d/squid
#

2. Extract from /sbin/init.d/squid

# pwd
/sbin/init.d
# more squid
#!/bin/sh
#
SQ_DIR=/usr/local/squid
#
case $1 in

'start')
        echo "Starting SQUID ..."
        nohup /sbin/init.d/squid_start
        ;;

 
squid calls shell script squid_start:

# cat squid_start
#!/bin/sh
#
su - squid -c '/usr/local/squid/bin/squid -D'
#
 
 
Be sure setting correct permissions :

# ls -l squid*
-rwxr-xr-- 1 bin bin 5143 Feb 19 15:00 squid
-rwxr-xr-- 1 bin bin 59 Feb 19 15:00 squid_start
#

hope this helps

Werner Rost, KIR
ZF Boge GmbH

Tel.: 0228/3825 420
Fax: 0228/3825 398

-----Ursprüngliche Nachricht-----
Von: Aldo S. Lagana [ mailto:alagana@discmail.com
<mailto:alagana@discmail.com> ]
Gesendet am: Montag, 25. Februar 2002 15:16
An: squid-users@squid-cache.org
Betreff: [squid-users] Starting squid on boot - try #3

Squid 2.4 will not start on boot for me (cause I'm stupid) since the
methods I have tried all attempt to start it as root (rc files, rc files
calling a script which changes the user.)

I cannot believe I am the only one having this problem - I read the FAQ,
and cache_effective_user doesn't do diddly for me - that is - it doesn't
change the 'root' user to that effective user...

HELP!!!

---------------------------------------------------------
This Mail has been checked for Viruses
Attention: Encrypted mails can NOT be checked!

**

Diese Mail wurde auf Viren geprueft
Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
---------------------------------------------------------

---------------------------------------------------------
This Mail has been checked for Viruses
Attention: Encrypted mails can NOT be checked!

**

Diese Mail wurde auf Viren geprueft
Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
---------------------------------------------------------

Received on Mon Feb 25 2002 - 07:41:07 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:31 MST