From a131bc466d501fa9acd255906a54f801e4fe69ba Mon Sep 17 00:00:00 2001 From: Kasun Herath Date: Sun, 11 Dec 2011 21:36:50 +0530 Subject: [PATCH] How to supply a custom pid file name added to usage --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f5337a7..f3ac728 100644 --- a/README.md +++ b/README.md @@ -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() @@ -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() +