Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th April 2008, 02:16 AM
kurtshi Offline
Registered User
 
Join Date: Feb 2008
Posts: 6
The difference between service start and chkconfig

What is the difference between chkconfig --level 4 httpd on
and service httpd start, assuming my computer runs in runlevel 4.

I used chkconfig to start the service, but apache just seems not
running.
Reply With Quote
  #2  
Old 6th April 2008, 02:32 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
If you look at the man pages for both
service
and
chkconfig

it explains the functions/options of each very well.

You may also want to have a look at the man page for runlevel as well.

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 6th April 2008, 03:00 AM
Gnafu the Great's Avatar
Gnafu the Great Offline
Gideon Mayhak
 
Join Date: May 2007
Location: Wisconsin Rapids, WI, USA
Age: 25
Posts: 771
Are you sure you aren't running at runlevel 3 or 5? Those seem to be more standard than 4.
__________________
Something new coming to this space soon...
Reply With Quote
  #4  
Old 6th April 2008, 03:53 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
The chkconfig command doesn't specifically stop or start a service, it only adds or removes the service to those daemons that will be run at boot.

The service man page seems designed to make it far more complex than it is. It starts or stops a service. A service is something that's in /etc/init.d.

Seve, much as I respect you, I doubt the man page of either command is very clear to a newcomer.
Reply With Quote
  #5  
Old 6th April 2008, 04:07 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello scottro:

You are probably correct

Sometimes the man pages seem to be somewhat cryptic.

Thanks for fleshing out the answer with a more real world response

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #6  
Old 6th April 2008, 05:04 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
I think that too many pages were probably written under protest. "I spent 6 months coding this, I have to document it too?????"

I suspect that to developers, writing documentation is the least enjoyable part of their projects. (Not always true of course--the fluxbox man page was apparently written by someone who really wants you to use it---it's full of enthusiasm with phrases like "See? Fluxbox makes it easy...".)
Reply With Quote
  #7  
Old 6th April 2008, 05:11 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
Hello:

To the best of my understanding, 'service foo start/stop' is like turning a light switch on/off. 'chkconfig --level XYZ foo on/off' is like setting an automatic timer to turn service foo on or off, in this case when the PC starts in runlevel XYZ.

V
Reply With Quote
Reply

Tags
chkconfig, difference, service, start

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A service not in chkconfig neogranas Servers & Networking 3 16th July 2009 10:31 PM
chkconfig and service bghayad Using Fedora 4 19th June 2009 02:26 AM
service X does not support chkconfig arnieAustin Servers & Networking 9 10th January 2009 08:32 PM
chkconfig wokrs but service start says unknow service gkk Servers & Networking 4 10th December 2007 02:45 AM
chkconfig and service RustyJuggler Using Fedora 10 3rd January 2006 03:00 PM


Current GMT-time: 12:39 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat