squid service start with ./squid

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

squid service start with ./squid

Postby majidnazeer » Thu Mar 15, 2007 2:14 pm

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:

Postby zaigham_tt » Thu Mar 15, 2007 2:37 pm

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
Contact:

Postby [-RHEL-] » Thu Mar 15, 2007 9:58 pm

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

Postby soh_2000s » Fri Mar 16, 2007 1:00 am

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

Postby kbukhari » Sat Mar 17, 2007 1:32 am

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

Postby LinuxFreaK » Sat Mar 17, 2007 9:29 am

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

Postby kbukhari » Sat Mar 17, 2007 8:51 pm

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:

Postby LinuxFreaK » Mon Mar 19, 2007 9:33 am

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


Return to “Security”

Who is online

Users browsing this forum: No registered users and 1 guest