Skip to content

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

License

Notifications You must be signed in to change notification settings

prehensilecode/python-daemon-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published