Fix a strange problem with saved PID file between runs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
13c643fc19
commit
8dd6b9d471
@ -21,5 +21,5 @@ COPY requirements.txt ./
|
|||||||
COPY --from=pybuild /usr/local/lib/python3.9 /usr/lib/python3.9
|
COPY --from=pybuild /usr/local/lib/python3.9 /usr/lib/python3.9
|
||||||
COPY . .
|
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" ]
|
CMD [ "-D", "/var/lib/nemubot" ]
|
@ -71,8 +71,8 @@ def main():
|
|||||||
|
|
||||||
# Resolve relatives paths
|
# Resolve relatives paths
|
||||||
args.data_path = os.path.abspath(os.path.expanduser(args.data_path))
|
args.data_path = os.path.abspath(os.path.expanduser(args.data_path))
|
||||||
args.pidfile = os.path.abspath(os.path.expanduser(args.pidfile))
|
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))
|
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.logfile = os.path.abspath(os.path.expanduser(args.logfile))
|
||||||
args.files = [x for x in map(os.path.abspath, args.files)]
|
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)]
|
args.modules_path = [x for x in map(os.path.abspath, args.modules_path)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user