Skip to content

Commit 8e193b1

Browse files
author
Hadley Rich
committed
Add ability to pass arguments to start() and run()
1 parent 0bfe8e8 commit 8e193b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

daemon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def sigtermhandler(signum, frame):
103103
def delpid(self):
104104
os.remove(self.pidfile)
105105

106-
def start(self):
106+
def start(self, *args, **kwargs):
107107
"""
108108
Start the daemon
109109
"""
@@ -128,7 +128,7 @@ def start(self):
128128

129129
# Start the daemon
130130
self.daemonize()
131-
self.run()
131+
self.run(*args, **kwargs)
132132

133133
def stop(self):
134134
"""

0 commit comments

Comments
 (0)