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 |
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.
|
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 |
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 07:57 AM. |