LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 11:41 AM   #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, 04:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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, 09: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, 12:10 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 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
Open Source Consulting | Domain Registration