Communicating with a running python daemon

前端 未结 8 1639
一个人的身影
一个人的身影 2020-12-07 07:45

I wrote a small Python application that runs as a daemon. It utilizes threading and queues.

I\'m looking for general approaches to altering this application so that

8条回答
  •  [愿得一人]
    2020-12-07 08:29

    Assuming you're under *nix, you can send signals to a running program with kill from a shell (and analogs in many other environments). To handle them from within python check out the signal module.

提交回复
热议问题