开源软件名称(OpenSource Name):serverdensity/python-daemon开源软件地址(OpenSource Url):https://github.com/serverdensity/python-daemon开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):Python daemonizer classThis is a Python class that will daemonize your Python script so it can continue running in the background. It works on Unix, Linux and OS X, creates a PID file and has standard commands (start, stop, restart) + a foreground mode. Based on this original version from jejik.com. UsageDefine a class which inherits from
Create a new object of your class, specifying where you want your PID file to exist:
Actions
ForegroundThis is useful for debugging because you can start the code without making it a daemon. The running script then depends on the open shell like any normal Python script. To do this, just call the
Continuous executionThe |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论