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