summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/launcher.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-05-04 21:50:57 -0400
committerKali Kaneko <kali@leap.se>2016-05-04 21:50:57 -0400
commit7801c5cd50cd6bcbf7eb14ad0e34c4eb70ba9c78 (patch)
tree59c5fc1fa50ec07f6c8a22b3e4759057ca9a9882 /src/leap/bitmask/core/launcher.py
parent245e49dc00b87a9db77e9753d739db64b3268658 (diff)
parent54560623ac5c325bebbe627582b3895c3354368a (diff)
Merge branch 'develop' into debian/experimental
Diffstat (limited to 'src/leap/bitmask/core/launcher.py')
-rw-r--r--src/leap/bitmask/core/launcher.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/launcher.py b/src/leap/bitmask/core/launcher.py
index b2319077..b8916a1e 100644
--- a/src/leap/bitmask/core/launcher.py
+++ b/src/leap/bitmask/core/launcher.py
@@ -17,17 +17,22 @@
"""
Run bitmask daemon.
"""
-from twisted.scripts.twistd import run
from os.path import join
from sys import argv
+from twisted.scripts.twistd import run
+
from leap.bitmask.util import here
from leap.bitmask import core
+from leap.bitmask.core import flags
def run_bitmaskd():
# TODO --- configure where to put the logs... (get --logfile, --logdir
# from the bitmask_cli
+ for (index, arg) in enumerate(argv):
+ if arg == '--backend':
+ flags.BACKEND = argv[index + 1]
argv[1:] = [
'-y', join(here(core), "bitmaskd.tac"),
'--pidfile', '/tmp/bitmaskd.pid',