Python: module for creating PID-based lockfile?

后端 未结 7 1818
醉酒成梦
醉酒成梦 2020-12-09 03:17

I\'m writing a Python script that may or may not (depending on a bunch of things) run for a long time, and I\'d like to make sure that multiple instances (started via cron)

7条回答
  •  甜味超标
    2020-12-09 03:57

    I believe you will find the necessary information here. The page in question refers to a package for building daemons in python: this process involves creating a PID lockfile.

提交回复
热议问题