Attempting to start a server after a stop command doesn't work for a few reasons.
The stop command closes the server but not the RCON, causing an unhandled error that crashes node. This can be fixed by handling the error in Rcon.js
For some reason it can't reconnect. I solved this by making a fresh Rcon object under the event that connects to the server.
Closing the RCON right before killing the child process also throws an error. This can be solved by grabbing the diconnected event and killing it after.
Attempting to start a server after a stop command doesn't work for a few reasons.
Rcon.js
Rcon
object under the event that connects to the server.