Henn Posted February 3, 2014 Share Posted February 3, 2014 how do I shut down my server for linux? Hello, I created a server mta race and I forgot to add the user in acl administrator, now the server is turned on and I do not know turn off. someone please pass me the command or teach me the revolver's this? OS template ubuntu-12.10-x86_64 Link to comment
lilkid4000 Posted February 4, 2014 Share Posted February 4, 2014 Well try pressing Ctrl +c or uninstalling MTA and reinstalling it after Link to comment
StifflersMom Posted February 4, 2014 Share Posted February 4, 2014 How do you started the mta-server ? Do you leave it alone and don't see the mta-server console? If so, you may try the following: open a shell on your sverver, where the mta-server runs. try the following command: ps a | grep mta-server Your output may be: 1263 pts/2 Ssl+ 334:06 ./mta-server 21105 pts/4 S+ 0:00 grep mta-server look at the PID of the process ./mta-server , it's the number on the left side (1263 in this example) you can kill the server with the following command: kill 1263 Well this is the "hard" way, before you start it again, you should "screen" it, described at this post: viewtopic.php?f=106&t=70474#p655824 <- read this This runs your mta-server console at the background if you detach it and you can reattach the console later (described at the posting). Hope, that helps Link to comment
Henn Posted February 4, 2014 Author Share Posted February 4, 2014 I want to shut down my server in linux, what command I use? Link to comment
StifflersMom Posted February 4, 2014 Share Posted February 4, 2014 I want to shut down my server in linux, what command I use? If you are on your mta-server console: quit Link to comment
Henn Posted February 5, 2014 Author Share Posted February 5, 2014 But this is the problem before I get on the server i forgot to add me the administrator group, then the server is online and I can not fix it because I'm not as administrator and I do not know how to turn it off by linux. Link to comment
StifflersMom Posted February 5, 2014 Share Posted February 5, 2014 For me and propably others, some things may be not clear enaugh: You talk about the server and how you shutdown it. Are you talking about the server or are you talking about the mta-server process? If you can login as root to your server, the description in posting.php?mode=reply&f=106&t=70736#pr658021 has to work. Link to comment
Henn Posted February 5, 2014 Author Share Posted February 5, 2014 yes I want to shutdown my mta-server with linux. For I have no admin in server and not have how to turn it off by the server. Link to comment
MTA Team Blokker_1999 Posted February 6, 2014 MTA Team Share Posted February 6, 2014 How did you start the server? Do you have command line access to the linux install or are you renting the server and only have access to a webbased interface? Link to comment
Henn Posted February 6, 2014 Author Share Posted February 6, 2014 I do not want start the server, I want to turn it off. Yes, I have the linux command line, I bought a vps and I'm paying it. I just want to shut down my server using linux Link to comment
MTA Team Blokker_1999 Posted February 6, 2014 MTA Team Share Posted February 6, 2014 so, you have it running in a detached screen i'm guessing or have at least backgrounded it. If you are using screen to run it in the background, reattach the screen it is running on with the command 'screen -r' , once you see the server console you can issue the quit command. If you simply backgrounded it you can either use the commands StifflersMom gave you (ps a | grep mta-server to find the pid and kill to kill it) or you could issue the following command: 'killall mta-server'. If you use kill or killall on a server that is running in a detached screen session, please note that the screen session itself wil NOT terminate and keep on running idle in the background. Link to comment
Henn Posted February 6, 2014 Author Share Posted February 6, 2014 thank you Blokker (y) 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