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.
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.
To clarify for others who come by this, you're using the Debconf confmodule to ask questions to the user in your postinst (http://stackoverflow.com/q/10139395/193468). The confmodule (shell-based interface to the debconf interactive machinery) does terrible magic in order to re-exec the script it's in with pipes going in and out of a separate debconf process. It's messy, especially when you need to do other things in the same script which expect file descriptors and the owning TTY to be arranged in a certain way (as when invoking initscripts). This is why it's not recommended to use db_input in a postinst. But you seem to have got it working, so, that's great. I just want to note that adding db_stop
won't always solve the problem for people with similar issues.