How do you create a daemon in Python? -
searching on google reveals x2 code snippets. first result this code recipe has lot of documentation , explanation, along useful discussion underneath.
however, another code sample, whilst not containing documentation, includes sample code passing commands such start, stop , restart. creates pid file can handy checking if daemon running etc.
these samples both explain how create daemon. there additional things need considered? 1 sample better other, , why?
sander marechal's code sample superior original, posted in 2004. once contributed daemonizer pyro, use sander's code if had over.
Comments
Post a Comment