Skip to content

Commit

Permalink
Fix bug with python-daemon version 2.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
  • Loading branch information
jim-easterbrook committed Dec 12, 2015
1 parent f461de0 commit d2b937f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pywws/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '15.11.1.dev1337'
_release = '1337'
_commit = '9c065ac'
__version__ = '15.12.0.dev1338'
_release = '1338'
_commit = 'f461de0'
3 changes: 2 additions & 1 deletion src/pywws/livelogdaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2008-14 Jim Easterbrook jim@jim-easterbrook.me.uk
# Copyright (C) 2008-15 pywws contributors

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -65,6 +65,7 @@ def __init__(self, data_dir, action, files_preserve, pid_file):
# initialise daemon runner
DaemonRunner.__init__(self, self)
self.daemon_context.files_preserve = files_preserve
self.daemon_context.initgroups = False

This comment has been minimized.

Copy link
@rcshubhadeep

rcshubhadeep Mar 7, 2017

I needed to fix this for a completely different project and this line really saved me. Thanks!

self.action = action

def parse_args(self, argv=None):
Expand Down

0 comments on commit d2b937f

Please sign in to comment.