solidsnake Posted December 23, 2016 Share Posted December 23, 2016 (edited) Hello, I have a question when I try to run the server from this command "./mta-server -d" How to detach or show the server console later and attach it after that ? Edited December 23, 2016 by solidsnake Link to comment
Kenix Posted December 24, 2016 Share Posted December 24, 2016 (edited) You can use "screen" Install on debian: apt-get install screen Edited December 24, 2016 by Kenix Link to comment
solidsnake Posted December 25, 2016 Author Share Posted December 25, 2016 20 hours ago, Kenix said: You can use "screen" Install on debian: apt-get install screen I know the screen command but I mean through the MTA server itself after launch it by this command "./mta-server -d" Link to comment
Jusonex Posted December 27, 2016 Share Posted December 27, 2016 That's not possible in a comfortable way (if you're looking for an uncomfortable way, search for 'pipes'). However, you can view and follow the logs via: tail -f /path/to/mta/mods/deathmatch/logs/server.log In case you want to inject input in your webinterface or something, most language standard libraries offer an API to access stdin/stdout directly. Link to comment
solidsnake Posted December 27, 2016 Author Share Posted December 27, 2016 (edited) 2 hours ago, Jusonex said: That's not possible in a comfortable way (if you're looking for an uncomfortable way, search for 'pipes'). However, you can view and follow the logs via: tail -f /path/to/mta/mods/deathmatch/logs/server.log In case you want to inject input in your webinterface or something, most language standard libraries offer an API to access stdin/stdout directly. Thanks for reply, I'm trying to enter a command to the console to stop/shutdown resource or server in case of stop responding For example a conflict happened between 2 resources as following: WARNING: Long execution (XXXXXXXX) WARNING: Long execution (XXXXXXXXXXXX) ERROR: XXXXXXXXXXXX/server.lua:xxx: C stack overflow [DUP x6668] ERROR: XXXXXXXXXXXX/server.lua:xxx: C stack overflow [Network] InResultQueue > 200000 msgs. This is due to server overload or script freeze Temporarily suspending incoming sync packets And thus the server frozen and stopped responding and the RAM kept increasing over 15 GB, So killing the process is the only option left. I thought that it will stop when the stack overflow occurred, but unfortunately it kept running. Edited December 27, 2016 by solidsnake Link to comment
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