StartService.sh
#11


#!/bin/sh

cd Connector/Connector;
./Connector &;
sleep 5;

cd ../../;
cd Helper/Helper;
./Helper &;
sleep 5;

cd ../../;
cd SubHelper/SubHelper;
./SubHelper &;
sleep 5;

cd ../../;
cd Messenger/Messenger;
./Messenger &;
sleep 5;

cd ../../;
cd GameServer;

cd GameServer1;
./GameServer_d &;
cd ..;

cd ../../;
cd LoginServer/LoginServer;
./LoginServer &;

Try out mate. You have to configure for your configuration. If you have more GameServers runing, just copy for your config.

#12


Yea, its very clear, but if my itnernet disconnects the server goes down with me,  I dont know why it does that.

+

 

How could your internet disconect you when getting out of the VPS lol?

How do you connect to it?

#13


How could your internet disconect you when getting out of the VPS lol?

How do you connect to it?

I didnt say that, Im saying when ever my internet disconnects the whole server goes down with me,  the  VPS isnt causing my net to disconnect. 

#14


#!/bin/sh

cd Connector/Connector;
./Connector &;
sleep 5;

cd ../../;
cd Helper/Helper;
./Helper &;
sleep 5;

cd ../../;
cd SubHelper/SubHelper;
./SubHelper &;
sleep 5;

cd ../../;
cd Messenger/Messenger;
./Messenger &;
sleep 5;

cd ../../;
cd GameServer;

cd GameServer1;
./GameServer_d &;
cd ..;

cd ../../;
cd LoginServer/LoginServer;
./LoginServer &;

Try out mate. You have to configure for your configuration. If you have more GameServers runing, just copy for your config.

 

Ill try this out when I get home.

#15

I was told thats what keeps the server running even if I turn my pc off, I guess he was wrong.

 

Based on this I think you are after whats called "Screen", it keeps your processes on centos running even when you shut down your computer, so your server will never go down even when you exit PuTTY. All you have to do is type, "Screen" and run your services in "screen" but follow the link below and install it, you will also find commands on bottom.

 

Here is the link how to install it.   2

#16


Based on this I think you are after whats called "Screen", it keeps your processes on centos running even when you shut down your computer, so your server will never go down even when you exit PuTTY. All you have to do is type, "Screen" and run your services in "screen" but follow the link below and install it, you will also find commands on bottom.

 

Here is the link how to install it.   2

 

i guess chevell answers is more accurate for your need... once chevell posted this i thought that i didnt understand your first question, and i was giving you just the startservice.sh you asked, and not solving your problem. im sorry for leading you in the wrong way. Screen is actually what you are looking for. Great work chevell, and thanks for correcting me,

#17

i run a vps and ive ran these files on my personal Gentoo HARDENED Linux  server, and when running, that ./startService.sh script  you can close out as soon as it starts, via putty or via terminal on your pc and it stays connected.screen is doing the same thing, if you are running on your pc and you shutdown your pc its gonna close the connection out ^^ simple as that..if you need help understanding ill create a video showing you its the same thing ^^ just extra junk your vps running thats not needed ^^

 

 

 

if you are going into every single server folder and running the ./LoginServer ./GameServer_d ./Messenger ./Helper ./Subhelper ./Connector in your vps or via terminal  and you close out the terminal or putty, it close that process out, the command cyber told you fixes that ^^

#18


i run a vps and ive ran these files on my personal Gentoo HARDENED Linux  server, and when running, that ./startService.sh script  you can close out as soon as it starts, via putty or via terminal on your pc and it stays connected.screen is doing the same thing, if you are running on your pc and you shutdown your pc its gonna close the connection out ^^ simple as that..if you need help understanding ill create a video showing you its the same thing ^^ just extra junk your vps running thats not needed ^^

 

 

 

if you are going into every single server folder and running the ./LoginServer ./GameServer_d ./Messenger ./Helper ./Subhelper ./Connector in your vps or via terminal  and you close out the terminal or putty, it close that process out, the command cyber told you fixes that ^^

 

 

i guess chevell answers is more accurate for your need... once chevell posted this i thought that i didnt understand your first question, and i was giving you just the startservice.sh you asked, and not solving your problem. im sorry for leading you in the wrong way. Screen is actually what you are looking for. Great work chevell, and thanks for correcting me,

 

 

Based on this I think you are after whats called "Screen", it keeps your processes on centos running even when you shut down your computer, so your server will never go down even when you exit PuTTY. All you have to do is type, "Screen" and run your services in "screen" but follow the link below and install it, you will also find commands on bottom.

 

Here is the link how to install it.   2

Thank to all three of you for helping me out, now I can let my dekstop computer cooldown and play on my laptop or something.



Forum Jump:


Users browsing this thread: 1 Guest(s)