Lighttpd hangs or fails to start through SSH
I believe my problem is related to this debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=355865
No idea whether that patch would work for me as I am using a custom restart script written in Ruby. I have tried forking a new thread to start lighttpd and then detaching it but that hasn't worked.
Basically, when starting lighty through SSH it tends to hang. I have been deploying a Rails app with Capistrano. In this circumstance sometimes Capistrano will not hang, but instead the process will start successfully and then immediately stop. Either way I tend to have to intervene when deploying which is of course not ideal.
The development server I've been using is Ubuntu Breezy, and the deployment server is FC1. I have the problem on both.
Let me know if I can provide any more information.
Implement a clean way to open /dev/null and use it to close stdin/out/err in the needed places (#624)
- as stderr gets redirected to /dev/null before exec in childs, we cannot
write to the log afterwards, so disabled that log messages too.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2163 152afb58-edef-0310-8abb-c4023f1b3aa9
#2 Updated by Anonymous almost 9 years ago
I just came across this exact problem, but on FreeBSD (on textdrive). I was using vlad, not capistrano, so odd ssh issues are out of the question as well. I can confirm that moo's workaround indeed works. It would be nice if lighttpd detached properly.
Also available in: Atom