LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12:46 PM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

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, 06:34 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:59 AM.

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
Open Source Consulting | Domain Registration