pb descr:
ssh to your server
start appserver with smthing like /usr/bin/python /usr/bin/gnue-appserver
--silent --debug-level 0-2 --debug-file /var/log/gnue/appserver.log --pidfile
/var/run/gnue/appserver.pid
and try to exit your ssh session, it hangs.
attempt to explain:
according to http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16 when trying
to become a daemon a process should close all its open file descriptors, this
would fix the hang (no more open fds attached to the process that lauched
appserver). Unfortunately, doing this in GServerApp.daemonize() closes the
debug-file, opened previously by GBaseApp.__init__(), and you lose the debug
facility. |