squid service start with ./squid

Protecting your Linux box
Post Reply
majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

squid service start with ./squid

Post by majidnazeer »

AoA!

I installed squid-2.5.STABLE12. Everything work fine. when i restart machine afterthat i need to be manually start squid. I want to set squid to boot run level.
secondly i start squid with ./squid command. I want to run start service with just (squid start) command.
I add ./squid command to rc.local. but after restart machine that's not restarted. Again i start squid manually.

Anybody can solve these problems. 1) squid start on startup 2) squid service start with squid command don't with ./squid.


thanks
Majid Nazeer
zaigham_tt
Havaldaar
Posts: 142
Joined: Fri Sep 22, 2006 8:33 pm
Contact:

Post by zaigham_tt »

use this to start squid on start-up

echo "/usr/local/squid/sbin/squid -D" >> /etc/rc.local
[-RHEL-]
Cadet
Posts: 9
Joined: Fri Jan 19, 2007 7:24 am
Location: Lahore

Post by [-RHEL-] »

A-O-A

dear try.. this Command

# chkconfig squid on
# service squid start


.... & restart Your system...
Windows : "Where do you want to go today?." Linux : "Where do you want to go tomorrow?." FreeBSD : "Are you guys coming what?."
soh_2000s
Cadet
Posts: 9
Joined: Sun Jun 18, 2006 6:30 am

try this command

Post by soh_2000s »

chkconfig –-level 3 squid on

this is auto matically start squid service when you login in init level 3
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Re: squid service start with ./squid

Post by kbukhari »

majidnazeer wrote:AoA!


I add ./squid command to rc.local. but after restart machine that's not restarted. Again i start squid manually.

add it like
/path/to/squid/sbin/squid i.e /usr/local/squid/sbin/squid
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: try this command

Post by LinuxFreaK »

Dear kbukhari,
Salam,
soh_2000s wrote:chkconfig –-level 3 squid on
This one is better then adding it into rc.local :)

Best Regards.
Farrukh Ahmed
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Re: try this command

Post by kbukhari »

LinuxFreaK wrote:Dear kbukhari,
Salam,
soh_2000s wrote:chkconfig –-level 3 squid on
This one is better then adding it into rc.local :)

Best Regards.
it will not work when you are using own compiled squid . you will need the startup and stop script at /etc/init.d/squid
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear kbukhari,
Salam,

If some one know howto compile then he should know why he is compiling. BTW one who is compiling squid need to copy init script from squid source to /etc/init.d

Best Regards.
Farrukh Ahmed
Post Reply