What would be the simplest way to daemonize a python script in Linux?

后端 未结 5 1948
既然无缘
既然无缘 2020-12-14 23:35

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.

5条回答
  •  情话喂你
    2020-12-15 00:18

    If you do not care for actual discussions (which tend to go offtopic and do not offer authoritative response), you can choose some library that will make your tast easier. I'd recomment taking a look at ll-xist, this library contains large amount of life-saving code, like cron jobs helper, daemon framework, and (what is not interesting to you, but is really great) object-oriented XSL (ll-xist itself).

提交回复
热议问题