LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-02-2006, 04:19 PM   #1
vortmax
Member
 
Registered: Nov 2005
Posts: 91

Rep: Reputation: 17
issue with 'service' command


I'm attempting to configure my webserver, and regardless of the issues I'm having with it, I'm running into a strange error with the 'service' command.

When the httpd service is not running, i can use 'service httpd start' and it works. No issues.

when I use 'service httpd stop' It just plain fails without any other indication.

When I try to use 'service httpd restart' I get this:

Code:
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
I assume what happens is that restart just issues the stop and start command together, and when the stop command fails, the start command gives that error since the service is still running.

So to stop the service, luckily it prints the PID in a file in the logs directory. So all I have to do is open that file, read the number, then run 'kill ######' to stop the process.

Any idea why the service command would work to start the service, but not stop it? This happens regardless if I'm logged in as root, or if I su - in.
 
Old 08-02-2006, 04:54 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Does the same thing happen if you issue the command "/etc/init.d/httpd restart" or stop and start ?

If so then the problem lies with apache and not the services command.

Edit: and have you made configuration changes to apache?
 
Old 08-02-2006, 05:00 PM   #3
vortmax
Member
 
Registered: Nov 2005
Posts: 91

Original Poster
Rep: Reputation: 17
yes, same thing happens with "/etc/init.d/httpd restart"

what sort of configuration changes? I'm running a different version in a different location then what came in the Fedora 5 release.
 
Old 08-02-2006, 05:07 PM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Perhaps something will be in either your access_log or error_log .

Mine are in /var/log/httpd/ Since yours is different they may be elsewhere. But try to start it and restart it then do something like a "tail -n 35 error_log" and see if anything pertinent comes up.
 
Old 08-02-2006, 05:11 PM   #5
vortmax
Member
 
Registered: Nov 2005
Posts: 91

Original Poster
Rep: Reputation: 17
only thing that shows up in the logs is

Code:
[Wed Aug 02 11:49:25 2006] [notice] caught SIGTERM, shutting down
[Wed Aug 02 11:49:44 2006] [notice] Apache/2.2.2 (Unix) configured -- resuming normal operations
when I do the manual kill and restart. When it fails, it doesn't print anything. Although in the error message it gives, it mentions not being able to access the logs. I wonder if there is a config file somewhere that the service command is reading that isn't set correctly.
 
Old 08-08-2006, 02:26 PM   #6
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
You know if you are running a different version and in a different location than the one that came with FC5, maybe it is reading from the config file that came with FC5. Did you have the FC5 version of apache installed when you installed the other one? You can find out by typing "rpm -qa|grep httpd"

The startup file /etc/init.d/httpd assumes that everthing like config files are where the fedora developers put everything.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Packageing issue in RHEL AS 4 (HP Service Guard Clustering) saqis Red Hat 1 06-19-2006 03:12 PM
issue installing svnserve as xinetd service in Fedora lipidinc Linux - Software 1 03-05-2006 04:49 AM
Service issue! Atif_Khan Linux - General 1 02-13-2005 07:18 AM
Steam service not started (Issue after reboot) kwiksand Linux - Games 0 02-03-2004 09:55 PM
Samba Issue: No service...on the remote system jlmoak Linux - Networking 6 01-10-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration