From a61019a5d30502a06b3a0ef09ca32044b8d09e2b Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Mon, 26 Sep 2016 18:09:30 -0400 Subject: [feature] rotate logs --- src/leap/bitmask/core/launcher.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/leap/bitmask/core/launcher.py') diff --git a/src/leap/bitmask/core/launcher.py b/src/leap/bitmask/core/launcher.py index b8916a1..27e5a26 100644 --- a/src/leap/bitmask/core/launcher.py +++ b/src/leap/bitmask/core/launcher.py @@ -17,7 +17,7 @@ """ Run bitmask daemon. """ -from os.path import join +from os.path import join, abspath from sys import argv from twisted.scripts.twistd import run @@ -25,6 +25,9 @@ from twisted.scripts.twistd import run from leap.bitmask.util import here from leap.bitmask import core from leap.bitmask.core import flags +from leap.common.config import get_path_prefix + +pid = abspath(join(get_path_prefix(), 'leap', 'bitmaskd.pid')) def run_bitmaskd(): @@ -35,8 +38,7 @@ def run_bitmaskd(): flags.BACKEND = argv[index + 1] argv[1:] = [ '-y', join(here(core), "bitmaskd.tac"), - '--pidfile', '/tmp/bitmaskd.pid', - '--logfile', '/tmp/bitmaskd.log', + '--pidfile', pid, '--umask=0022', ] print '[+] launching bitmaskd...' -- cgit v1.2.3