LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-17-2006, 01:46 PM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Rep: Reputation: 32
How do you register Apache as a service on RH 9?


I was wondering what I would need to do to register Apache 2.0 as a service so I can use commands like:

service apache status

chkconfig apache on
 
Old 03-18-2006, 07:34 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,666
Blog Entries: 54

Rep: Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952
I was wondering what I would need to do to register Apache 2.0 as a service
When you install the Apache rpm it automagically sets up a init script in /etc/rc.d/init.d called httpd. /sbin/service just relies on the existence of the /etc/rc.d/init.d/httpd init script, so this "registers" the service for use with "service". Automagical starting and stopping a service is set up with chkconfig. If no symbolic links are made in any of the /etc/rc.d/rc?.d dirs you can set it up by issuing "chkconfig --add httpd".
 
  


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
how to register auto start/stop service script with chkconfig travellers Linux - Software 8 06-15-2009 12:02 PM
Register rpc service on a remote machine? sokar Programming 1 07-26-2005 06:49 PM
PHP 5.0 Register Globals and Apache 2.0.50 latino Linux - Software 1 07-21-2004 07:47 PM
How to register a Tcl script as a service? vlbaranov Linux - Newbie 2 06-01-2004 11:14 AM
apache service precioso77 Linux - Software 6 04-21-2003 06:40 PM


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