LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2003, 12:41 PM   #1
penguinview
LQ Newbie
 
Registered: Mar 2003
Posts: 17

Rep: Reputation: 0
start services without xinetd


I have installed apache and proftpd on a Redhat 7.3. I would like them to not be controlled by xinetd, but be run as "standalone" services. Where do I need to put the commands to start them on boot?

Thanks,
David
 
Old 09-26-2003, 05:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You need to create their starting scripts (if the servers were installed from RPMs, you have them in /etc/rc.d/init.d directory), then create symlinks to /etc/rc.d/rcX.d (where X is your runlevel). Symlinks names should be SXXservicename where XX is a number (it says when the script is started - they go in order). For example S66httpd.
 
Old 09-26-2003, 10:04 PM   #3
penguinview
LQ Newbie
 
Registered: Mar 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I installed them from source. Can I create symlinks to the executable to start them in /etc/rc.d/rc3.d? Runlevel 3 is the default runlevel isnt it?
Or is it a bad idea to symlink direct to the executalbe?

Thanks
 
Old 09-27-2003, 01:10 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
The scripts accept parameters (as 'start' to start the service). That's why simply symlinking will not always work (it may work with Apache when you symlink to apachectl). You have a sceleton script in your system (in /etc/rc.d/init.d, as far as I remember), you can use it and simply add your executable name.
 
  


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
stopping services not in xinetd.d branden_burger Linux - Security 2 04-12-2005 09:34 PM
How do I know, which services within xinetd are running saneax Linux - Newbie 4 08-11-2004 08:47 AM
xinetd /etc/services iftiuk Linux - Networking 7 04-17-2004 01:36 AM
xinetd doesn't seem to start services when an attempt is made to connect Cichlasoma Mandriva 2 03-25-2004 12:14 PM
xinetd, ftp, and other services jimi_j Linux - Software 0 03-09-2004 06:37 PM


All times are GMT -5. The time now is 08:53 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