- Posts: 177
- Thank you received: 0
cannot connect to parent proxy error at startup
18 years 10 months ago #12667
by monsky
Replied by monsky on topic Re: cannot connect to parent proxy error at startup
whew, scripts! what the hell are the scripts? how could i learn those? any links where to learn these from? i found the running squid script in /etc/rc.local.
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
#This is to run squd from startup - monsky
if [ -f /usr/local/squid/sbin/squid ]; then
echo -n 'Squid'
/usr/local/squid/sbin/squid
fi
so thats why it run last.
how could i be able to transfer this script or if not is there a default script for squid? where should i put script for squid? and eventually want to learn composing scripts.
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
#This is to run squd from startup - monsky
if [ -f /usr/local/squid/sbin/squid ]; then
echo -n 'Squid'
/usr/local/squid/sbin/squid
fi
so thats why it run last.
how could i be able to transfer this script or if not is there a default script for squid? where should i put script for squid? and eventually want to learn composing scripts.
18 years 10 months ago #12669
by monsky
Replied by monsky on topic Re: cannot connect to parent proxy error at startup
i touch'ed a squid script file inside the /etc/rc.d/init.d/ and inserted the script from the /etc/rc.d/rc.local.
i learned that the actual init.d is being linked only by the rc*.d files.
www.faqs.org/docs/linux_intro/sect_04_02.htm
i learned that the actual init.d is being linked only by the rc*.d files.
www.faqs.org/docs/linux_intro/sect_04_02.htm
18 years 10 months ago #12670
by monsky
Replied by monsky on topic Re: cannot connect to parent proxy error at startup
i forgot to say that it is now working , it is now automaticaly load at startup.
18 years 10 months ago #12673
by DaLight
Replied by DaLight on topic Re: cannot connect to parent proxy error at startup
Glad to hear it's now working monsky, but I don't quite understand what you did.
-
1. Did you insert the squid startup commands (which were originally in rc.local) into an existing startup script?
2. What did you then do with the code in rc.local?
3. Also did you actually find out where DansGuardian was being called up?
18 years 10 months ago #12681
by monsky
Replied by monsky on topic Re: cannot connect to parent proxy error at startup
Dalight,
#This is to run squd from startup - monsky
if [ -f /usr/local/squid/sbin/squid ]; then
echo -n 'Squid'
/usr/local/squid/sbin/squid
fi
2. it is now empty. because the only content of the rc.local is the startup script of squid which i transferred to /etc/rc.d/init.d/squid
3. i found the dansguardian and squid in one of the /etc/rc.d/rc*.d file.
any suggestions and corrections are welcome.
1. i just copied the script from the rc.local to the /etc/rc.d/init.d/squid file.i touch'ed a squid script file inside the /etc/rc.d/init.d/ and inserted the script from the /etc/rc.d/rc.local.
#This is to run squd from startup - monsky
if [ -f /usr/local/squid/sbin/squid ]; then
echo -n 'Squid'
/usr/local/squid/sbin/squid
fi
2. it is now empty. because the only content of the rc.local is the startup script of squid which i transferred to /etc/rc.d/init.d/squid
3. i found the dansguardian and squid in one of the /etc/rc.d/rc*.d file.
any suggestions and corrections are welcome.
18 years 10 months ago #12688
by DaLight
Replied by DaLight on topic Re: cannot connect to parent proxy error at startup
Glad it's working out. Obviously, Squid must be loading before DansGuardian now. To ensure it works properly all the time it may be best to have the startup commands for both programs in the same startup script so as to ensure the correct startup sequence is maintained. But if it works OK now you may want to leave things as they are.
Time to create page: 0.132 seconds