2

我正在使用 Fedora 10 linux。我已经为我的软件创建了 RPM 文件。它工作正常。但是当我启动计算机时它不会自动启动。在创建 RPM 文件或 .desktop 文件期间我有什么需要做的吗?安装后我的应用程序将如何自动重新启动。

谢谢苏尼尔库马尔萨胡。

4

4 回答 4

2

我的操作系统:Fedora release 8,今天我遇到了同样的情况(需要在系统启动时启动SVNserver。我使用以下步骤实现了相同的操作,它可能对你有用

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

#!/bin/bash
svnserve -d

记住:使文件可执行。

第2步。 在运行级目录中创建了符号链接。就我而言,它是 /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'在启动时启动蓝牙服务)

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

于 2012-01-31T09:30:53.913 回答
1

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

于 2009-11-13T12:31:21.907 回答
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
于 2009-11-17T12:55:04.433 回答
0

您也可以尝试在/etc/rc.local/etc/init.d/rc.local中添加脚本

Ubuntu 用户

于 2009-12-28T18:55:21.287 回答