Skip to content

Commit

Permalink
pass args to executable
Browse files Browse the repository at this point in the history
  • Loading branch information
kasraavand committed Oct 14, 2016
1 parent ba7b45c commit 41afc0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions daemons/windaemon.py
Expand Up @@ -13,12 +13,12 @@ def stop(self):
self.log("I'm done")


def initialize(executable):
Daemon.start = lambda self: executable()
def initialize(executable, *args):
Daemon.start = lambda self: executable(*args)


def start(executable):
initialize(executable)
def start(executable, *args):
initialize(executable, *args)
instart(Daemon, 'FTPwalker', 'FTPwalker', stay_alive=False)


Expand Down

0 comments on commit 41afc0f

Please sign in to comment.