tags:

views:

764

answers:

3

Hi I am using Fedora 10 linux. I have created RPM file for my software. It works fine. But it doesnot start automatically when I boot up my computer. Is there anything that I have to do during creation of RPM file or .desktop file. How my application will automatically restarts after installation.

Thanks Sunil Kumar Sahoo.

+1  A: 

You'll need to write an initscript and install it into /etc/init.d, and symlink it into the rc.3 and rc.5 directories (and whatever other runlevels you want). If you pattern your initscript after some of the ones already on your system, you can create these symlinks with the chkconfig program.

Jeff Paquette
A: 
Put the .desktop file in the following folder in Fedora linux to start the application during startup

/etc/xdg/autostart

If we want to start the application before my desktop starts (means to start during driver load) then put the shell script file in the below path

/etc/X11/xinit/xinitrc.d directory
Deepak
Your response also helped me alot. Thanks dude.
Deepak
A: 

Also you can try adding your script in /etc/rc.local or /etc/init.d/rc.local

UBUNTU USER

amir beygi