Update system signal handling
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 1m9s

This commit is contained in:
2025-08-12 03:52:40 -07:00
parent c1ef92e832
commit 52ccca7161
3 changed files with 54 additions and 15 deletions

View File

@@ -1,13 +1,4 @@
#!/bin/sh
# Run the application in the background
python generate_config.py && python pterodisbot.py &
# Capture the process ID
PID=$!
# Wait for SIGTERM signal
trap "kill -INT $PID" SIGTERM
# Wait for the process to complete
wait $PID
python generate_config.py && python pterodisbot.py