加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – init脚本没有安装到/etc/init.d

发布时间:2020-12-13 16:41:07 所属栏目:Linux 来源:网络整理
导读:我有一个源包,我想添加一个简单的init.d脚本. 我知道dh_installinit应该有所帮助:当我运行它时,会创建postrm,prerm,postinstall的示例,以便在安装后执行update-rc.d(顺便说一句,这对我来说是好的) 但是当我做apt-get install时,我无法创建我的新创建的包来
我有一个源包,我想添加一个简单的init.d脚本.
我知道dh_installinit应该有所帮助:当我运行它时,会创建postrm,prerm,postinstall的示例,以便在安装后执行update-rc.d(顺便说一句,这对我来说是好的)
但是当我做apt-get install时,我无法创建我的新创建的包来将文件复制到/etc/init.d!

先谢谢serverfault社区了!

解决方法

来自dh_installinit(1):

If a file named debian/package.init exists,then it is installed into etc/init.d/package in the package build directory,with “package” replaced by the package name.

If a file named debian/package.default exists,then it is installed into etc/default/package in the package build directory,with “package” replaced by the package name.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读