Run servoy server when exit ssh

Questions and answers for all installation-related topics for Servoy products

Run servoy server when exit ssh

Postby pentamsi » Tue Jul 24, 2012 9:33 am

I have a problem and occurs when i'm conected to the ssh and run the .sh, and all it's okey when i'm conecting to the machine, but the ssh close the connection when no activity in the machine, and close too the sh script, and can't acces the server again, in this case i have to enter again in ssh and run manually the sh.

In other way i installed the servoy_service.sh but not ocurs nothing, any idea to make EVER the servoy_server.sh run?
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Run servoy server when exit ssh

Postby Kaptan » Tue Jul 24, 2012 10:06 am

You have to keep the .sh running in the background. You can start the script in the background by adding '&' after the command:

./servoy_server.sh &

Then Servoy will be running even if you close your ssh connection.
Sem
Kaptan
 
Posts: 124
Joined: Mon Aug 04, 2008 11:17 pm
Location: Amsterdam

Re: Run servoy server when exit ssh

Postby ryanparrish » Tue Jul 24, 2012 6:25 pm

Simply backgrounding the process with '&' will still cause the server to terminate when you leave your session. you need to set 'nohup' when you start the process if you want to do it that way viewtopic.php?p=49713#p49713

But really, you (if you are on servoy >= 6.0) should use the service wrapper as this is the problem it's designed to solve. http://wiki.servoy.com/display/public/D ... +a+service
ryanparrish
 
Posts: 162
Joined: Thu May 17, 2007 7:49 pm
Location: Miami, FL


Return to Installation

Who is online

Users browsing this forum: No registered users and 4 guests

cron