On Thu, May 7, 2015 at 8:03 AM, Chris Angelico <ros...@gmail.com> wrote: > On Thu, May 7, 2015 at 11:44 PM, Marko Rauhamaa <ma...@pacujo.net> wrote: >> Whole programming cultures, idioms and "right ways" differ between >> platforms. What's the right way to write a service (daemon)? That's >> probably completely different between Windows and Linux. Linux itself is >> undergoing a biggish transformation there: an exemplary daemon of last >> year will likely be deprecated within a few years. > > And that's where a library function can be really awesome. What's the > right way to daemonize? "import daemonize; daemonize.daemonize()" > seems good to me. Maybe there's platform-specific code in the > *implementation* of that, but in your application, no. That's the job > of a layer underneath you.
https://www.python.org/dev/peps/pep-3143/ -- https://mail.python.org/mailman/listinfo/python-list