LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Running an executable file at startup in Fedora 9 (https://www.linuxquestions.org/questions/linux-newbie-8/running-an-executable-file-at-startup-in-fedora-9-a-715453/)

vinayblore 03-30-2009 06:47 AM

Running an executable file at startup in Fedora 9
 
Hi,

I have an executable file called "Main".I want to run this executable file at startup.
What changes should I make in /etc/init.d and rc.d files to make my executable file to run at startup. I am using Fedora 9.
The default runlevel is rc5 in my system.

cyprinidae 03-30-2009 08:00 AM

Forgetting about runlevels and rcX.d init style you can add a command executing your script from /etc/rc.local. It will be executed after all the other init scripts. However, that's not the nicest way of doing things...

knudfl 03-30-2009 09:23 AM

Welcome to LQ.

If you want a program to start in Gnome :

Please run the command 'gnome-session-properties'.
A GUI will open, and you can add any application
to be "auto started".

Or just copy a 'Desktop Entry' ( Main.desktop ),
also called an 'Icon' to the hidden file
/home/vinayblore/.config/autostart/
.....

vinayblore 04-03-2009 06:20 AM

Thank you very much knudfl.....its working...:)


All times are GMT -5. The time now is 04:57 PM.