Page 1 of 1

software for automatic reconnection - ubuntu

Posted: Wed Oct 22, 2014 11:57 am
by Alexandre24
hello,

I sought a solution to correct this problem. error: Segmentation fault. But I have no response and it gets annoying when you have several people who connect to the server and disconnected his own. Just in DSGame terminal. I have to restart it manually. I am looking to see if this is possible how we can create a system of automatic reconnection in case I am not? Because the error can meet at any time and most of the time. I'm not in front of the terminal. And bam panic in the players. So you know how to correct the mistake or you know a system of automatic reconnection. A program that rebuilt the command in the terminal in my place under Ubuntu?

Thank you for your future answers.

Re: software for automatic reconnection - ubuntu

Posted: Thu Oct 23, 2014 1:42 am
by whitevamp
just add it to a cron job to check it and or restart it every say 5 min or so..

Re: software for automatic reconnection - ubuntu

Posted: Thu Oct 23, 2014 1:59 am
by atom0s
You could also write a bash script and use screen to run it in the background.

Re: software for automatic reconnection - ubuntu

Posted: Thu Oct 23, 2014 12:40 pm
by whitevamp
atom0s wrote:You could also write a bash script and use screen to run it in the background.
this reminded me that i have such a script..

Code: Select all

#!/bin/bash

sleep 5; screen -d -m -S dsconnect ./dsconnect
sleep 5; screen -d -m -S dsgame ./dsgame
sleep 5; screen -d -m -S dssearch ./dssearch