Hi! You may want to use the existing daemon Python library instead of rewriting that stuff ;)
http://pypi.python.org/pypi/python-daemon/
Also, a litte nit: the standard way of passing options for daemonizing a process is not to pass "once" as a CLI arg, but to use CLI options, such as --nodaemon
« Back to merge proposal
Hi! You may want to use the existing daemon Python library instead of rewriting that stuff ;)
http:// pypi.python. org/pypi/ python- daemon/
Also, a litte nit: the standard way of passing options for daemonizing a process is not to pass "once" as a CLI arg, but to use CLI options, such as --nodaemon