微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

我有一个源包,我想添加一个简单的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.

原文地址:https://www.jb51.cc/linux/398298.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐