Posts: 1,741
Threads: 44
Joined: Apr 2010
Reputation:
0
Under linux when killing the server the server closes the clients connection.
How would i restart the server without gmx and without closing the clients connection?
Posts: 99
Threads: 3
Joined: Oct 2010
Reputation:
0
I don't think it's possible, because linux terminates the connection between client and server permanently. I might be wrong, but in my opinion it is so...
Posts: 305
Threads: 8
Joined: Feb 2009
Reputation:
0
This happens when I close the console on my Windows server, too, but only when I close the console. Restarting via rcon does not do this. I do not have access to my Linux pc right now to see the results on Linux as you have said, however, I think the results will be the same as the Windows results.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Cameltoe
Restarting via rcon = gmx right? gmx buggs up.
|
How does it "bugg up?"
If you mean that files fail to save, you could try to utilise the OnGameModeExit function (which I think is called when a GMX ocurrs)?
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Cameltoe
Thats one of the reasons, variables not getting reseted is yet another one.
I don't really need this, i just want to know if there's an way doing this : PP
|
I'm almost 100% positive that variables reset upon a GMX, as that's how I used to force restarts for my server, my only issue was functionality not being terminated and started again when the gamemode had started properly, which I resolved by exiting any of the plugin functions and calling them when the server starts again.
If that's not a feesible solution, I really can't think of anything else. I usually would just use
killall samp03svr[pid] on Linux if I ever needed to force a restart via commandline, but I only hosted 1 SA-MP server on my server.
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
Restart server using SendRconCommand("exit") to make sure everything reloads properly.