software for automatic reconnection - ubuntu

Post Reply
Alexandre24
Posts: 175
Joined: Thu Mar 13, 2014 10:15 pm
Location: Hawkesbury, Ontario, CANADA

software for automatic reconnection - ubuntu

Post by Alexandre24 » Wed Oct 22, 2014 11:57 am

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.

whitevamp
Posts: 52
Joined: Sun Dec 09, 2012 12:19 pm

Re: software for automatic reconnection - ubuntu

Post by whitevamp » Thu Oct 23, 2014 1:42 am

just add it to a cron job to check it and or restart it every say 5 min or so..

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: software for automatic reconnection - ubuntu

Post by atom0s » Thu Oct 23, 2014 1:59 am

You could also write a bash script and use screen to run it in the background.

whitevamp
Posts: 52
Joined: Sun Dec 09, 2012 12:19 pm

Re: software for automatic reconnection - ubuntu

Post by whitevamp » Thu Oct 23, 2014 12:40 pm

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

Post Reply