【发布时间】:2012-04-13 21:13:55
【问题描述】:
我创建了一个 deb。与我的应用程序一起打包,我应该在安装结束时启动 lighttpd(postinst 脚本)。问题是如何启动 lighttpd 并且不锁定终端。它应该以某种方式在后台启动...
谢谢。
【问题讨论】:
-
最后,我发现了一些奇怪的事情...如果我在
postinst的末尾开始invoke-rc.d xxxx start脚本lighttpd 将在前台启动。但是,如果我手动启动invoke-rc.d xxxx start,lighttpd 将在后台启动。为什么会这样? -
我找到了解决方案 [fifi.org/doc/debconf-doc/tutorial.html#AEN198].我在
invoke-rc.d xxxx start之后添加了db_stop,并且postinst 脚本可以正常工作。
标签: daemon lighttpd deb post-install