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.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...