Socket still active after restart - Linux
#1

Hello, i'm running the Socket plugin on my server and if i use Start / Stop gamepanel function it's ok but if I use Restart the socket will remain active. I have socket_destroy( g_Socket ) at OnGameModeExit.

This is the server.sh i execute on the server:

pkill samp03svr
sleep 5
cd /home/samp
./samp03svr
Reply
#2

The pkill command sends a SIGTERM signal which should tell the application to perform a clean exit but I don't think that SA-MP handles this properly. Check the log if there is a line "server shutting down" which indicates clean shutdown. If the server is not shutdown cleanly then OnGameModeExit is NOT called. In any case, doing an RCON exit is always the safest way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)