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

6th April 2008, 02:16 AM
|
|
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.
|

6th April 2008, 02:32 AM
|
 |
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 ... :)
|

6th April 2008, 03:00 AM
|
 |
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...
|

6th April 2008, 03:53 AM
|
 |
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.
|

6th April 2008, 04:07 AM
|
 |
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 ... :)
|

6th April 2008, 05:04 AM
|
 |
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...".)
|

6th April 2008, 05:11 AM
|
 |
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 12:39 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|