Skip to content

Commit

Permalink
Pass no-heartbeat to daemon processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammy committed Feb 15, 2019
1 parent b3cd3c4 commit a76e6f8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pyinstalive/dlfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,13 @@ def iterate_users(user_list):
"If this is not the case, manually delete the file '{:s}' and try again.".format(user + '.lock'))
else:
logger.info("Launching daemon process for '{:s}'.".format(user))
start_result = helpers.run_command("pyinstalive -d {:s} -cp '{:s}' -dp '{:s}' {:s} {:s}".format(
user, pil.config_path, pil.dl_path,
'--no-lives' if not pil.dl_lives else '', '--no-replays' if not pil.dl_replays else ''))
start_result = helpers.run_command("pyinstalive -d {:s} -cp '{:s}' -dp '{:s}' {:s} {:s} {:s}".format(
user,
pil.config_path,
pil.dl_path,
'--no-lives' if not pil.dl_lives else '',
'--no-replays' if not pil.dl_replays else '',
'--no-heartbeat' if not pil.do_heartbeat else ''))
if start_result:
logger.warn("Could not start process: {:s}".format(str(start_result)))
else:
Expand Down

0 comments on commit a76e6f8

Please sign in to comment.