Implementing a full Python Unix-style daemon process
问题 I'm currently trying to manually create a simple daemon process, I don't want to use the existing externals libraries to avoid overhead. I'm currently checking when my process runs that it doesn't have a PID file already created (meaning it's running), like described in this post. I also have a daemonizing module to detach the PID from current process and redirect stdout and stderr (so my daemon will keep running even if I end my session): import os import sys def daemonize(stdin="/dev/null",