3 ms·
The server only needs to stay up for a minute while you pick up the phone and accept the call, so a simple sigterm can be called from a bash script a few minute
by johncoogan 13y ago
The server only needs to stay up for a minute while you pick up the phone and accept the call, so a simple sigterm can be called from a bash script a few minutes later to shut everything down. You could also probably write this in Python, but I'm not sure exactly how.
The server will keep running if you don't kill it, but it shouldn't matter too much because the port will be occupied and when it runs the next time, the new instance will error out, and Twilio will contact the old server (if it's still running).
Does that sound reasonable?