Files
Pterodisbot/entrypoint.sh
T
2025-08-12 04:14:52 -07:00

13 lines
313 B
Bash

#!/bin/sh
# Run the application in the background
python generate_config.py && python pterodisbot.py &
# Capture the application's process ID
pid=$!
# Trap the SIGTERM signal and pass it through to the process upon stopping the container
trap "kill -TERM $pid" SIGTERM
# Wait for process to complete
wait $pid