FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

python-daemon-example/README.md at master · AlanForester/python-daemon-example · GitHub

Latest commit

 

History

History
12 lines (9 loc) · 599 Bytes

File metadata and controls

12 lines (9 loc) · 599 Bytes

python-daemon-example

Simple example of using python-daemon with logging and PID lock file.

What is here:

  • eg_daemon.py -- the Python-based daemon itself; should be installed in /var/lib/eg_daemon/
  • eg_daemon.init -- SysV init script; should be installed in /etc/init.d

When eg_daemon.py is started, these two files will be created:

  • /var/run/eg_daemon.pid -- this file will contain the PID of the daemonized process; it is automatically deleted when the daemon is stopped normally
  • /var/log/eg_daemon.log -- log file

Back | FazBrowse Home | New Git URL