LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   start services without xinetd (https://www.linuxquestions.org/questions/linux-newbie-8/start-services-without-xinetd-97172/)

penguinview 09-26-2003 11:41 AM

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

Mara 09-26-2003 04:00 PM

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.

penguinview 09-26-2003 09:04 PM

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

Mara 09-27-2003 12:10 PM

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.


All times are GMT -5. The time now is 11:47 PM.