What would be the simplest way to daemonize a python script in Linux ? I need that this works with every flavor of Linux, so it should only use python based tools.
Use grizzled.os.daemonize:
$ easy_install grizzled >>> from grizzled.os import daemonize >>> daemon.daemonize()
To understand how this works or to do it yourself, read the discussion on ActiveState.