如何让我的应用程序在系统启动后自动启动,rpm,Fedora 10

发布于 2024-08-10 22:12:45 字数 144 浏览 7 评论 0原文

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

谢谢 苏尼尔·库马尔·萨胡。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

月亮坠入山谷 2024-08-17 22:12:45

我的操作系统: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”用于启动蓝牙服务
启动)

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

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

各空 2024-08-17 22:12:45

您需要编写一个初始化脚本并将其安装到 /etc/init.d 中,并将其符号链接到 rc.3 和 rc.5 目录(以及您想要的任何其他运行级别)。如果您按照系统上已有的一些脚本来设计您的初始化脚本,则可以使用 chkconfig 程序创建这些符号链接。

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.

樱花细雨 2024-08-17 22:12:45
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
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
东京女 2024-08-17 22:12:45

中添加脚本

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

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

UBUNTU USER

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文