Blizzard Posted May 9, 2014 Share Posted May 9, 2014 Hello I have bug with Console i can't open my console when i started my server on vps chmod +x mta-server then when i do ./mta-server -d to open console not work and it's show nothing no output and if i started it normal when i close putty server will off Help Pls King Regards Blizzard Link to comment
Mikker Posted May 9, 2014 Share Posted May 9, 2014 cd .. cd home/folder/ You have to select the folder first. Link to comment
Blizzard Posted May 9, 2014 Author Share Posted May 9, 2014 u didn't understand me i mean if i started server and close putty when i want to open console again <<< i need command for this Link to comment
Mikker Posted May 9, 2014 Share Posted May 9, 2014 Start : screen -d -m -S Prozess ./mta-server Select: screen -ls Open: screen -r Prozess 1 Link to comment
MTA Team Blokker_1999 Posted May 11, 2014 MTA Team Share Posted May 11, 2014 maybe you should read into working with linux before attempting to administer a server. The -d switch deamonizes the process. It's like a service on windows. Something that ONLY runs in the background and has no console or no way to be directly manipulated from the console. It will only respond to kill signals. In order to interact with a deamon you need to use it's APIs. In the case of MTA that would be either the web interface or from within the game. When you run a process within a shell, that process is a child process from that shell. Kill the parent process (by closing the shell session (read: closing putty)) and the child dies with it. Any decent process browser will show you how dependend they are since a child process is usually displayed as a sub process of the parent. Windows even offers you a possibility to kill an entire process tree when you right click on a process. so what you need is a way to detach a process from a shell session. As Mikker explained, screen is one way to it. However, keep in mind that screen is an aging solution and there are more flexible solutions out there these days. I am slowly moving away from screen in favor of tmux that offers much more flexibility. 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