Kenix Posted December 30, 2011 Posted December 30, 2011 (edited) I have a question, assume the server shutdown. All saved in the mysql server if I use onResourceStop or not? I need an exact answer. Edited December 30, 2011 by Guest
TAPL Posted December 30, 2011 Posted December 30, 2011 No, i've test that with this script addEventHandler ( "onResourceStop", resourceRoot, function () outputServerLog("Hello World") end) i type /shutdown i search in log file but i didn't find 'Hello World' [2011-12-30 11:56:24] SHUTDOWN: Got shutdown command from Console (No reason specified) [2011-12-30 11:56:24] Server stopped! [2011-12-30 11:56:24] Stopping resources............. [2011-12-30 11:56:24] Closing SQLite3 database the server stopped before resources
Kenix Posted December 30, 2011 Author Posted December 30, 2011 You not understand me i need save in mysql server.If server shoutdown. P.S i test with addEventHandler( "onResourceStop",resourceRoot, function( ) outputDebugString( "Resource stopped" ) end ) [2011-12-30 12:39:57] Server stopped! [2011-12-30 12:39:57] Stopping resources... [2011-12-30 12:39:57] INFO: Resource stopped [2011-12-30 12:39:57] Closing SQLite3 database But I'm still not sure whether or not to continue. I need answer YES or NO.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now