0

I have created a deb. package with my App and I should start lighttpd at the end of installation (postinst script). The question is how to start lighttpd and don't lock a terminal. It should started in background somehow...

Thanks.

4

1 回答 1

0

为了向其他人澄清,您正在使用 Debconf 配置模块在您的 postinst (http://stackoverflow.com/q/10139395/193468) 中向用户提问。confmodule(debconf 交互机制的基于 shell 的接口)做了可怕的魔法,以便重新执行它所在的脚本,管道进出单独的 debconf 进程。这很混乱,尤其是当您需要在同一个脚本中执行其他操作时,需要以某种方式排列文件描述符和拥有的 TTY(如调用 initscripts 时)。这就是为什么不建议在 postinst 中使用 db_input 的原因。但你似乎已经让它工作了,所以,那太好了。我只想指出,添加db_stop并不总能解决有类似问题的人的问题。

于 2012-05-08T16:05:28.300 回答