Shut down server and optionally re-start it
int NS_Shutdown( int timeout, int restart );
The timeout argument specifies a time limit (in seconds) in which the server is to shut down. If the server hasn't shut down within the time limit, it is immediately stopped, aborting any active connections.
If restart is NS_TRUE, the server is re-started after it is shut down. Pass zero or NS_FALSE to specify that the server not be re-started.