Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,I entered into the command ... service squid restart and i got this error.
squid: unrecognized service
What could be missing in my configuration?
How about "squid"? Did you actually INSTALL it, before you tried to start it?? Also, it would help if you told us what version/distro of Linux you're using.
One thing i noticed is that there is no folder for /etc/squid/squid.conf
I tried this command also just to find out if i can edit it but no to avail.
-vi /etc/squid/squid.conf and it says .... [NEW DIRECTORY] .... and gives me an error attention :
My guess is the installation never really was successfull.
E325 : ATTENTION
Found a swap file by the name " var/tmp/squid.conf.swp" and so on and so forth...
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
error reading information on service squid: No such file or directory
Error in PREUN scriptlet in rpm package s[/B][/COLOR]
It would seem like the package wasn't completely installed. Try "yum reinstall squid" (read the man page on the yum command http://linux.die.net/man/8/yum). Be sure you run those commands as root or through sudo.
Hello TB0ne, i never knew that there is a "reinstall" command in YUM and i'm reading the man page of it now. I did it and it was successfull. As the next thing to do to verify and to start the service i got another error below. or maybe not..
service squid start init_cache_dir /var/spool/squid... /etc/init.d/squid: line 62: 3356 Aborted
$SQUID -z -F -D >> /var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 42: 3357 Aborted $SQUID
$SQUID_OPTS >> /var/log/squid/squid.out 2>&1 [FAILED]
I am a newbie to linux and i appreciated your help very much....
Hello TB0ne, i never knew that there is a "reinstall" command in YUM and i'm reading the man page of it now.
If you're new in Linux, I'd suggest that be the first thing to check if you need help. Just typing in "man <whatever command name>" will give you a good bit of help, and sometimes even point you to similar commands.
Quote:
I did it and it was successfull. As the next thing to do to verify and to start the service i got another error below. or maybe not..
service squid start init_cache_dir /var/spool/squid... /etc/init.d/squid: line 62: 3356 Aborted
$SQUID -z -F -D >> /var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 42: 3357 Aborted $SQUID
$SQUID_OPTS >> /var/log/squid/squid.out 2>&1 [FAILED]
Most startup scripts are in /etc/init.d, and can be invoked manually. Try (as root), "/etc/init.d/squid status" (or "start", "stop", etc. Type it with no options, and it'll give you a list.) That will give you command-line feedback on things, and let you know if the service is running. Looks like it didn't start, though. Have you initialized the squid cache dir? Check some documentation on basic squid setup...there are things you have to do, before you can start it: http://www.squid-cache.org/
..but the error above should give you clues. Does the cache dir exist (listed as /var/spool/squid)? How about that log file?? If they don't exist, create them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.