1
0
Fork 0

Fix a strange problem with saved PID file between runs
continuous-integration/drone/push Build is passing Details

This commit is contained in:
nemunaire 2020-12-01 00:47:14 +01:00
parent 13c643fc19
commit 8dd6b9d471
2 changed files with 3 additions and 3 deletions

View File

@ -21,5 +21,5 @@ COPY requirements.txt ./
COPY --from=pybuild /usr/local/lib/python3.9 /usr/lib/python3.9
COPY . .
ENTRYPOINT [ "python", "-m", "nemubot", "-d", "-M", "/usr/src/app/modules" ]
ENTRYPOINT [ "python", "-m", "nemubot", "-d", "-P", "", "-M", "/usr/src/app/modules" ]
CMD [ "-D", "/var/lib/nemubot" ]

View File

@ -71,8 +71,8 @@ def main():
# Resolve relatives paths
args.data_path = os.path.abspath(os.path.expanduser(args.data_path))
args.pidfile = os.path.abspath(os.path.expanduser(args.pidfile))
args.socketfile = os.path.abspath(os.path.expanduser(args.socketfile))
args.pidfile = os.path.abspath(os.path.expanduser(args.pidfile)) if args.pidfile is not None and args.pidfile != "" else None
args.socketfile = os.path.abspath(os.path.expanduser(args.socketfile)) if args.socketfile is not None and args.socketfile != "" else None
args.logfile = os.path.abspath(os.path.expanduser(args.logfile))
args.files = [x for x in map(os.path.abspath, args.files)]
args.modules_path = [x for x in map(os.path.abspath, args.modules_path)]