LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Starting an application at boot (https://www.linuxquestions.org/questions/linux-newbie-8/starting-an-application-at-boot-174062/)

ftwomey 04-24-2004 12:28 PM

Starting an application at boot
 
Is there anyway to start a program before the login screen appears? I am running Redhat 9.0. I have an application that I want to run and that's it. I do not want to be able to access anything. I tried placing the progam in /etc/rc.d/rc.local but it is not working.

Also my eth0 interface will not activate on startup. I need to activate it manually. I checked to make sure the bootup was set to yes in the networking directory and I deleted the profile for it.

fancypiper 04-24-2004 04:15 PM

Put the command in the last script run on bootup in the file /etc/init.d/rc.local

Make sure the info in /etc/hosts is correct
Code:

# Duron 950 uilleann Fedora Core 1 /etc/hosts file:  This file describes a number of hostname-to-address
#
127.0.0.1      uilleann        uilleann.phils  localhost
192.168.0.1    tinwhistle      tinwhistle.phils
192.168.0.2    uilleann        uilleann.phils


ftwomey 04-25-2004 05:49 AM

I do not have /etc/init.d/rc.local. I did put my program entry in /etc/rc.d/local.d. The program does not start up on boot and the login window is shown.

I would really just like my program to boot and nothing else. Also when the user closes the program, they cannot go to anything else.

JJX 04-25-2004 08:07 AM

An other approach:

vi /etc//init.d/myfile
put anything u want there
Give +x.

cd /etc/rc2.d/
create a symbolic link here. (ln -s ../init.d/myfile S99myfile)

reboot (it should work)


All times are GMT -5. The time now is 12:37 AM.