SphereCommunity
[Linux] Start sphere in a screen @ CentOS 6.4 - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: [Linux] Start sphere in a screen @ CentOS 6.4 (/Thread-Linux-Start-sphere-in-a-screen-CentOS-6-4)



[Linux] Start sphere in a screen @ CentOS 6.4 - nobody2k - 03-05-2015 10:49 PM

Hi all!

My sphereserver is running with my CentOS 6.4, so no problems to get it started BUT I cannot start it using the screen command.

screen -D -m spheresvr &

This is what i receive as an "answer" to my command:

[root@81-89-103-180 home]# screen -D -m spheresvr &
[1] 16220
[root@81-89-103-180 home]#

Nothing else!
When i type "screen -r 16220" then the console tells me the following:

[1]+ Done screen -D -m spheresvr
[root@81-89-103-180 home]#

Nothing else, no sphereserver that's running in the background, now sphere console comming up -> just nothing^^


./spheresvr works great, the sphere console shows up and it boots... (but when I close putty the sphereserver is closed too Wink )


Am I doing something wrong?

thx 4 ur help Smile


RE: [Linux] Start sphere in a screen @ CentOS 6.4 - Ben - 03-06-2015 09:57 AM

well, screen doesn't quite work that way Smile
First you need to create your screen session, and then start sphere from inside that screen.

Simple way is this:
Login with putty.
enter "screen -x -RR sphereserver" <--- This will get your screen session called sphereserver or create one if it don't exist
start sphere "./spheresvr"
close putty. Don't use the exit command.
To get the console again, login to putty, use "screen -x -RR sphereserver"


RE: [Linux] Start sphere in a screen @ CentOS 6.4 - nobody2k - 03-06-2015 06:19 PM

Thank you so much, much more simple than I thought Smile