Skip to content

Commit

Permalink
How to supply a custom pid file name added to usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kasun committed Dec 11, 2011
1 parent 7c97c18 commit a131bc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -15,6 +15,9 @@ python setup.py install

# Creating a yapdi daemon instance
daemon = yapdi.Daemon()

# You can also supply a pid file name at daemon instance creation time
daemon = yapdi.Daemon(pidfile='/var/run/.myservice.pid')

# Daemonizing an instance; Any code placed under this would get executed in daemon mode
daemon.daemonize()
Expand All @@ -34,3 +37,4 @@ python setup.py install
# Running a daemonized instance as a different user; any code below these two lines would get executed in daemon mode as user 'user123'
daemon.set_user('user123')
daemon.daemonize()

0 comments on commit a131bc4

Please sign in to comment.