LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to run a console program at startup (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-a-console-program-at-startup-643540/)

BonScott73 05-20-2008 11:05 AM

How to run a console program at startup
 
Hello, I need to run a program on a certain console at startup on a Red-hat.
I do not want a login shell in that console. Only the program running, and if the program hangs, it should restart.

I've been trying to do this changing the inittab file, but it does not work. Can anybody tell me how to do this?

Thanks in advance and sorry for my english.

kilgoretrout 05-20-2008 11:20 AM

If the application doesn't need X, you can usually run the command from /etc/rc.d/rc.local. That's the last init script to run and is frequently used to run commands at the end of the init process.

fbianconi 05-20-2008 06:30 PM

I think that what you need is to edit /etc/inittab I don't know how (to edit it), but maybe
'man init' can help you


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