pianello-web-app/frontend/add-sigint.sh
Alessio Davoli 8e4bf59686
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Add grateful exit on SIGINT AND SIGTERM
2023-07-19 16:00:34 +02:00

8 lines
185 B
Bash
Executable file

#!/usr/bin/bash
echo "function shutdownGracefully() {
process.exit(0);
}
process.on('SIGINT', shutdownGracefully);
process.on('SIGTERM', shutdownGracefully);" >> ./build/index.js