pianello-web-app/frontend/add-sigint.sh

9 lines
185 B
Bash
Raw Normal View History

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