如何在SUSE中配置服务器程序在启动时自动启动?

发布于 2024-07-07 09:31:13 字数 23 浏览 4 评论 0原文

有没有好的 SUSE 帮助网站?

Are there any good SUSE help sites?t

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

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

发布评论

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

评论(1

离去的眼神 2024-07-14 09:31:13

服务器程序使用从 /etc/init.d/rc*.d 链接的脚本启动。 这是添加另一个的正确方法:

  1. 使用正确的 LSB 元信息创建一个名为 /etc/init.d/ 的 shell 脚本。 您可以将其基于现有脚本之一,它应该是不言自明的。
  2. 然后使用 insserv 根据 LSB 元信息自动生成从 /etc/init.d/rc*.d 到它的正确符号链接。

Server programs are started using scripts linked from /etc/init.d/rc*.d. This is the correct way to add another one:

  1. Create a shell script called /etc/init.d/<serverprogram> with the correct LSB meta information. You can base it on one of the existing scripts, it should be self-explanatory.
  2. Then use insserv to automatically generate the right symlinks from /etc/init.d/rc*.d to it, based on the LSB meta information.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文