mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Pass the pid to the installer as a cmd arg
This commit is contained in:
@@ -488,8 +488,6 @@ def main():
|
||||
)
|
||||
argparser.add_argument(
|
||||
'--temporary-page',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='Serve a temporary page while TLJH is building'
|
||||
)
|
||||
|
||||
@@ -509,13 +507,9 @@ def main():
|
||||
|
||||
# Stop the http server with the loading page before traefik starts
|
||||
if args.temporary_page:
|
||||
pidfile = "/loading.pid"
|
||||
try:
|
||||
with open(pidfile, "r") as f:
|
||||
pid = f.read()
|
||||
os.kill(int(pid), signal.SIGINT)
|
||||
os.kill(int(args.temporary_page), signal.SIGINT)
|
||||
# Remove the pid file and the temporary html page
|
||||
os.remove(pidfile)
|
||||
os.remove('/index.html')
|
||||
os.remove('/favicon.ico')
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user