Skip to content

Commit

Permalink
fix: change signal from SIGQUIT to SIGTERM for stopping temporary UI
Browse files Browse the repository at this point in the history
  • Loading branch information
TheophileDiot committed Feb 11, 2025
1 parent b9a5517 commit 4c7773a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/utils/gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def set_secure_permissions(file_path: Path):

if TMP_PID_FILE.is_file():
LOGGER.info("Stopping temporary UI...")
call(["kill", "-SIGQUIT", TMP_PID_FILE.read_text().strip()])
call(["kill", "-SIGTERM", TMP_PID_FILE.read_text().strip()])
current_time = datetime.now().astimezone()
while TMP_PID_FILE.is_file():
if (datetime.now().astimezone() - current_time).total_seconds() > 60:
Expand Down

0 comments on commit 4c7773a

Please sign in to comment.