I’ve upgraded from discosrv (0.13.x) to the new 0.14 stdiscosrv on my VPS (Ubuntu 14.04 - 32 bit). I have already configured port, certificate, key, and permissions.
Being a Windows-centric person, I am struggling with a simple LINUX command to launch stdiscosrv using putty, and keeping the server running when I close putty.
In the putty console, stdiscosrv launches but the server ID fails to be broadcast, and then my other devices fail to connect to discovery. If I launch without “& disown”, I get the ID broadcast, all devices are discovered, but I stop the server when I close putty.
Any suggestions how I can exit putty after the ID is broadcast and keep the discovery server running?
The best bet is to start it as a service, using whatever system your distro provides for creating services. That way it will be restarted if your system restarts, etc.
I once created an Upstart Script (stop, start, exec) on the VPS, and I’ll see if I can find the .conf file on the VPS and use it as a template to create a new service for the discovery server. It’s worth a shot …
Is it reasonable to assume that the “exec” line in the script would look like this?
While for sure a good move for the future, I just want to add for other readers that the code is the same at this point and you don’t have to upgrade 0.13 disco servers for 0.14 clients.