Jump to content

How to stop or restart MTA Server in Linux Debian 32 bit ?


Recommended Posts

You have to use "Screen".

apt-get install screen

screen -S MTA (create a screen named MTA)

Go to the path where u can find mta-server script.

Type ./mta-server (it start the server)

Later if you want be reattached to the screen you can use screen -r to list all screens and screen -rd MTA to reattach it.

To stop it just type exit or quit.

Link to comment
You have to use "Screen".

apt-get install screen

screen -S MTA (create a screen named MTA)

Go to the path where u can find mta-server script.

Type ./mta-server (it start the server)

Later if you want be reattached to the screen you can use screen -r to list all screens and screen -rd MTA to reattach it.

To stop it just type exit or quit.

I'm Don't Understand

Link to comment
  • 2 months later...

First - you need screen app:

apt-get install screen 

Next you need to go to your server home(where you have mta-server or mta-server64).

Then type:

screen -S mtaserver ./mta-server 

or

screen -S mtaserver ./mta-server64 

"mtaserver" is screen name, you can type anything you want(for example mtadm). It will start screen with mta server.

You can type commands in console, etc.

When you want to close console(but not server!) just click ctrl+a+d on your keyboard. This shortcut deattach you from screen.

If you want to return to server console type:

screen -x mtaserver 

Again - "mtaserver" is name of your screen.

If you want to stop server just go to console and type "shutdown".

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...