2009-11-13 103 views

回答

1
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 
+1

您的回复也帮了我很多。多谢,伙计。 – 2009-12-12 09:55:06

1

您需要编写一个initscript并将其安装到/etc/init.d,并将它符号链接到rc.3和rc.5目录(以及任何其他所需的运行级别)。如果您在系统中已有的某些模式之后构建了initscript,则可以使用chkconfig程序创建这些符号链接。

0

您也可以尝试在/etc/rc.local中/etc/init.d/rc.local

UBUNTU用户

2

我的操作系统添加脚本: Fedora release 8,今天我也遇到了同样的情况(需要在系统启动时启动SVNserver,我使用下面的步骤实现了同样的功能,可能对你有用

St EP1。 在 “/etc/init.d中” 创建下面的脚本文件 “svn_start_script.sh”

#!/bin/bash 
svnserve -d 

记住:使文件可执行。

Step2。 在运行级目录中创建一个sybmolic链接。在我的情况下,它是/etc/rc.d/rc5.d(运行级别5)

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

IMP:链接的文件名应该与“S50”开始,S50是告诉 系统启动脚本,当它启动时, (你可以看到“S50bluetooth”有没有在 启动开启蓝​​牙服务)

你可以参考这个site进一步阅读

相关问题