LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2008, 01:25 PM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
chkconfig error : squid


hi all,
I have compiled squid and it is runing alright. But the problem is , I can't configure it to start with chkconfig. When I do chkconfig squid on , I get the following error :-
error reading information on service squid: No such file or directory

any clues on that ?
thanks in advance
nishith
 
Old 09-20-2008, 02:08 PM   #2
predatorz
Member
 
Registered: Mar 2007
Posts: 58

Rep: Reputation: 15
There is no squid init.d file in /etc/init.d
 
Old 09-20-2008, 03:04 PM   #3
latinmusic74
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 16
squid

Can you post this output:

Post the output of:

rpm -qa 'squid*'

chkconfig --list squid

ls -l /etc/rc.d/init.d
 
Old 09-21-2008, 12:56 PM   #4
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
Quote:
Post the output of:
rpm -qa 'squid*'
chkconfig --list squid
ls -l /etc/rc.d/init.d
firstly, the install was a tarball install, so rpm -qa doesnot show anything. but squid is installed under /usr/local/squid.

secondly chkconfig gave the following output :-
error reading information on service squid:Invalid argument

Lastly, there is a entry for the squid in the /etc/rc.d/init.d dir and it is :-
-rw-r--r-- 1 root root 0 2008-09-18 16:03 squid

Do I have to make it rwxr-xr-x?
nishith

Last edited by nkd; 09-21-2008 at 12:59 PM.
 
Old 09-21-2008, 01:41 PM   #5
latinmusic74
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 16
Squid

In the /etc/rc.d/init.d dir:

owner=read, write, but not execute permission.

group=read, no write, and no execute

everyone=read, no write, and no execute.

-rw-r--r-- 1 root root 0 2008-09-18 16:03 squid

try this:

-rwxr-xr-x 1 root root 0 2008-09-18 16:03 squid

Also, did you configure squid.conf with the name of the server, the port to be use?

Last edited by latinmusic74; 09-21-2008 at 01:49 PM.
 
Old 09-29-2008, 04:34 AM   #6
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
Quote:
Also, did you configure squid.conf with the name of the server, the port to be use?
NO I didn't use any name for the server. The squid.conf file just has a entry for the port as under
http_port 3128

Quote:
try this:
-rwxr-xr-x 1 root root 0 2008-09-18 16:03 squid
Changing the permissions of the squid script in the /etc/init.d dir didnot solve the problem

nishith
 
Old 09-29-2008, 11:41 PM   #7
latinmusic74
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 16
Squid

Try this:

Disable / Turn off Linux Firewall

Type the following two commands (you must login as the root user):

# /etc/init.d/iptables save
# /etc/init.d/iptables stop


then try to run squid. If squid work then you need to work out with you firewall/iptables.

To enable/on iptables

# /etc/init.d/iptables start
 
Old 09-29-2008, 11:46 PM   #8
predatorz
Member
 
Registered: Mar 2007
Posts: 58

Rep: Reputation: 15
Try chkconfig --add squid.
Does it return any error?
If no, then chkconfig squid on?
 
Old 10-03-2008, 12:16 AM   #9
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
Quote:
Try chkconfig --add squid.
Does it return any error?
If no, then chkconfig squid on?
That returned the same error :
[root@localhost squid-3.0.STABLE9]# chkconfig --add squid
error reading information on service squid: Invalid argument


So any more clues ?

nishith
 
Old 11-02-2008, 01:08 PM   #10
rays
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
hi nkd,

Lastly, there is a entry for the squid in the /etc/rc.d/init.d dir and it is :-
-rw-r--r-- 1 root root 0 2008-09-18 16:03 squid

based on the above output it says the file name /etc/rc.d/init.d/squid size is 0.
I think there's nothing inside the file name "squid".
so this could be the reason.


good day!
:-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
installing squid : service squid start --> error jonaskellens Linux - Software 2 09-05-2008 03:06 AM
Chkconfig not supported error!!!! kartheekpn Linux - Security 3 05-04-2005 08:22 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM
squid error cranium2004 Linux - Networking 1 10-27-2004 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration