Use the improved version of pidlockfile, where locks are implicitly
released when the process is no longer running.
Otherwise we are prevented from starting just by the existence of the
lockfile, even if the previous process was terminated abnormally.
def do_daemon(args, state):
import daemon
import inotify.adapters
- import lockfile.pidlockfile
+ import pidlockfile
logging.getLogger('inotify.adapters').propagate = False
stderr=sys.stderr,
files_preserve=getLogFileDescriptors(logging.getLogger()),
umask=0o002,
- pidfile=lockfile.pidlockfile.PIDLockFile(args.daemon))
+ pidfile=pidlockfile.PIDLockFile(args.daemon))
# XXX: running flag isn't actually doing anything anymore so can be removed
running = True
flake8-builtins
flake8-import-order
license_expression
-lockfile
markdown
+pidlockfile
pycodestyle
python-daemon
xtarfile[zstd]