TheGuyNL Posted April 26, 2012 Share Posted April 26, 2012 Hey, I got a VPS and a mta server running on it but when I close my ssh connection the server stops aswell. How do I prevent it from doing this? Link to comment
DutchCaffeine Posted April 26, 2012 Share Posted April 26, 2012 If I'm not mistaking, it is quite easy cd in to the mta server directory and run: ./MTAServer -s change the text 'MTAServer' with your mta executable. The -s stands for silent. Hope this is working for you, if not write a daemon script Link to comment
TAPL Posted April 27, 2012 Share Posted April 27, 2012 If I'm not mistaking, it is quite easy cd in to the mta server directory and run: ./MTAServer -s change the text 'MTAServer' with your mta executable. The -s stands for silent. Hope this is working for you, if not write a daemon script According to my information and my knowledge, it's not -s it's -d -d is for daemon: means run in the background. Link to comment
-ffs-Sniper Posted April 27, 2012 Share Posted April 27, 2012 I recommend you to use screen sessions for your MTA servers. Just install "screen" with "apt-get install screen" and read the following tutorial made by me: ----------- Screen usage ----------- Don't forget to remove the < and > when using the commands! Start a screen (MTA server) with a <name> (You must be inside of the directory where the "mta-server" file is located): screen -S <name> ./mta-server CTRL + A + D to deattach from a running screen (closing it without stopping the process) Reattach to a screen called <name>: screen -x <name> List all screens with their <name>s: screen -ls To shutdown a server first reattach to the screen using "screen -x <name>" and then type in: quit 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