LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Autostartup application (https://www.linuxquestions.org/questions/red-hat-31/autostartup-application-645597/)

VictorLemar 05-29-2008 10:14 AM

Autostartup application
 
In Red Hat 9 I'd wish to start automatically at boot (with no need to log in) an application (/usr/local/bin/sarad). How can I do the job? Many thanks.

b0uncer 05-29-2008 10:44 AM

Do you mean RedHat 9 (the old distribution) or Fedora 9 (the newest from Fedora series)? I just ask because sometimes people mix up the two and talk about "RedHat" versions when they really mean Fedora Core (up to version 6) or Fedora (from version 6 on) versions..

Anyway, you can have it start by adding it to the init (boot) scripts. I assume there's a /etc/rc.local or equivalent script that is run after all the other boot scripts, so you could just add /usr/local/bin/sarad to that script and it should be run after the other boot scripts are finished, independently of anybody logging in or not.

EDIT: you should edit your profile information and add there the operating system/distribution you are using; it helps answering your possibly distribution-specific questions.

VictorLemar 05-29-2008 11:42 AM

It works fine! Great!
Many thanks.

P.S. It was Red Hat 9

chrism01 05-29-2008 08:03 PM

To follow up from b0uncer, that's a really old unsupported, un-updated distro.
Do not use it on the internet, for your own safety.
If you must, then pls upgrade to eg Fedora (probably v8, as 9 has only just come out), or Centos (free ver of RHEL).

VictorLemar 05-30-2008 02:35 AM

The problem is that the application is very old and it doesn't actually runs on more recent Linux versions, Red Hat is the only one that works. Anyway I have installed it on a virtual machine to host this application and it's connected only to a small private Intranet.


All times are GMT -5. The time now is 06:10 AM.