English 中文(简体)
How to make my application auto-start after system bootup, rpm, Fedora 10 [closed]
原标题:
  • 时间:2009-11-13 12:17:20
  •  标签:
  • fedora
  • rpm

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.

最佳回答
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
问题回答

My Operating system: Fedora release 8 , today I had a same situation(Need to start SVNserver at system start-up. I achieved the same using below steps , it may be useful for you

Step1. Created below script file "svn_start_script.sh" in "/etc/init.d"

#!/bin/bash
svnserve -d

Remember : make the file executable.

Step2. Created a sybmolic link in run-level directory. In my case it is /etc/rc.d/rc5.d ( run level 5)

ln -s /etc/init.d/svn_start_script.sh /etc/rc.d/rc5.d/S50svn_start_script.sh

IMP : link file name should start with S50 , The S50 is to tell the system to start the script when it boots up, (You can see S50bluetooth is there to start Bluetooth services at start-up)

You May refer this site for further reading

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.

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

UBUNTU USER





相关问题
OpenCV cvNamedWindow not appearing under Fedora

As the title suggests I m simply trying to get a named window to come up. I ve been working with OpenCV for over a year now, and never had this problem before. For some reason, the window never opens. ...

Is Network Up? C++ Fedora/Unix

Does any one have a snippet of their code that, checks if the network is enabled on a machine and has an active IP Address. I have a networking software that connects to other client machines, ...

How to put license agreement in spec file, RPM

I am using Fedora 10 linux. I want to put license agreement for my spec file. Actually I have created rpm for my application. So my application gets installed perfectly without asking for license ...

How to write .spec file to check JRE version in Fedora 10

I am using fedora 10 linux. I have created an RPM for my software it works fine. But I want the follwing feature "If I install RPM it will check whether JRE 1.5 or greater is availble in that system ...

How to create Customized group in RPM, Fedora

Hi I am using Fedora 10 linux. I have created an rpm for my application. I can run my going to manubar and then application under Applications----> Others--> MyApplication. But I want my ...

How to convert .rpm file into .deb file in Fedora 10

Hi I am using 64 bit fedora10 linux. I have created rpm file for my software. It works fine. But my software doesnot works good or ubuntu and debian linux because they want .deb file. So How to ...

热门标签