notebook server daemon + security issues
Hi I installed sage on my vserver and run it with a lighttpd proxy. All I need now is a daemon so I can run it in the background on my vserver, because I use this server for other things as well. Is there a way I can start the sage notebook as a daemon? Or do I need to make a bash script (I'm not good at bash)? What would be the best way to invoke the notebook, which parameters should I use?
I am also a bit worried about security, as my notebook can be accessed through the web publicly. Is there anything I should take account of?
I don't think Sage has a "daemon mode", but there is a trac ticket on it (http://trac.sagemath.org/sage_trac/ticket/381). Usually, screen or nohup will accomplish the desired effect, and they have been suggested on sage-support (http://groups.google.com/group/sage-support/browse_thread/thread/dd0941ed21112c03/a127a3fafbb0be32). Regarding security, it might be useful to enable HTTPS via "secure=True" option and to use a strong password. If you intend to make this notebook publicly available for anyone to use, there are some more things to consider, like running the server with restricted user permissions.
Kelvin: can you post your comment as an answer so I can mod it up?
@Jason Grout: I can delete my comment above if that would be appropriate. The content has been posted as an answer.