我有一个源包,我想添加一个简单的init.d脚本.
我知道dh_installinit应该有所帮助:当我运行它时,会创建postrm,prerm,postinstall的示例,以便在安装后执行update-rc.d(顺便说一句,这对我来说是好的)
但是当我做apt-get install时,我无法创建我的新创建的包来将文件复制到/etc/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 intoetc/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 intoetc/default/package
in the package build directory,with “package” replaced by the package name.