squid service start with ./squid

Protecting your Linux box

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
majidnazeer
Naik
 
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

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
zaigham_tt
Havaldaar
 
Posts: 142
Joined: Fri Sep 22, 2006 8:33 pm
Website: http://www.programming-world.4t.com

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?."
[-RHEL-]
Cadet
 
Posts: 9
Joined: Fri Jan 19, 2007 7:24 am
WLM: sroney_lee@hotmail.com
Location: Lahore

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
soh_2000s
Cadet
 
Posts: 9
Joined: Sun Jun 18, 2006 6:30 am

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
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Security

Who is online

Users browsing this forum: No registered users and 1 guest