Ray Media Server Shuts Down

I was able to install the Ray Media Server tonight.

It seems to run great, but only so long as I am logged in via SSH. The moment I logout, RMS shuts down.

After originally noticing this, I added the line to start it with a system reboot and went down for one. When it came back up I had the same thing.

Has anyone else experienced this or know what I'm doing wrong here?

I installed JDK and JRE in the /opt/ray_server/ location. Does that have something to do with it? 

Any help is greatly appreciated. I'm so close, yet seemingly so far away & this is the first time I've installed RMS

Thanks,

Corey 

Quote · 14 May 2014

Let me guess you started it while you where ssh into your host correct?

http://vi-bin.com
Quote · 14 May 2014

Yes, but when I log out of SSH it kills RMS

Quote · 14 May 2014

You need to setup the rms as a service that auto starts.

http://vi-bin.com
Quote · 14 May 2014

I added the RMS startup line in etc/rc.d/rc.local so that it looks like this

----------------------------------#!/bin/sh

#

# This script will be executed *after* all the other init scripts.

# You can put your own initialization stuff in here if you don't

# want to do the full Sys V style init stuff.

cd /opt/ray_server

./run_daemon.sh

touch /var/lock/subsys/local

/scripts/rdate & 

-----------------------------------------------

When I rebooted RMS didn't start. Undecided

If I try to run the command directly it gives me this read out and does nothing afterward.

"./run_daemon.sh: line 5: /opt/ray_server: Is a directory" 

I must be missing a step here, but I've been over this 20 times and can't figure out what I'm doing wrong.

Thanks 

Quote · 14 May 2014

 I don't work with RMS but maybe try this?

I added the RMS startup line in etc/rc.d/rc.local so that it looks like this

#!/bin/sh

# This script will be executed *after* all the other init scripts.

# You can put your own initialization stuff in here if you don't

# want to do the full Sys V style init stuff.

sh /opt/ray_server/run_daemon.sh

touch /var/lock/subsys/local

/scripts/rdate & 

no idea whats that red part is for...doesn't look necessary

so much to do....
Quote · 14 May 2014

Hi,

I'm not sure what that is either. I think the hosting company put it there. I'm a little afraid to remove it to be honest.

The first part leads to a blank file. 

Quote · 14 May 2014

Hmm...how you start RMS in shell, whats the cmd?

so much to do....
Quote · 14 May 2014

I'm running the following

cd /

cd   /opt/ray_server

then ./red5.sh

It starts when I do that. But only runs until the shell is closed. 

Quote · 14 May 2014

 

cd /opt/ray_server

./red5.sh

touch /var/lock/subsys/local

/scripts/rdate & 

 isn't that more logical now?

so much to do....
Quote · 14 May 2014

Huh, that does seem to work. That doesn't appear to be what is in the documentation though. I might have misunderstood something?

The screen I've attached below show the official instructions

 

Quote · 14 May 2014

Well, it's working so I'm not going to question why.


Thank you both very much for your help. =D

~ Corey 

Quote · 14 May 2014

I also have an issue where the RMS will shutdown on its own or not restart when server restarts. I have done everything exactly as the instructions said for installing RMS and everything does work - while it is running. I have to check periodically throughout the day to make sure it is still running (which gets annoying). I thought maybe I was the only one so never posted about it, but seeing as someone else has a similar issue, I am posting now.

caredesign.net
Quote · 14 May 2014

 

I also have an issue where the RMS will shutdown on its own or not restart when server restarts. I have done everything exactly as the instructions said for installing RMS and everything does work - while it is running. I have to check periodically throughout the day to make sure it is still running (which gets annoying). I thought maybe I was the only one so never posted about it, but seeing as someone else has a similar issue, I am posting now.

There may be information in the logs. I've never had an issue with RMS stopping or failing to start on reboot, but I've seen this happen on some low-spec servers or when it wasn't properly installed.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 14 May 2014

 

 

I also have an issue where the RMS will shutdown on its own or not restart when server restarts. I have done everything exactly as the instructions said for installing RMS and everything does work - while it is running. I have to check periodically throughout the day to make sure it is still running (which gets annoying). I thought maybe I was the only one so never posted about it, but seeing as someone else has a similar issue, I am posting now.

There may be information in the logs. I've never had an issue with RMS stopping or failing to start on reboot, but I've seen this happen on some low-spec servers or when it wasn't properly installed.

 I will have to check the logs. Iknow it is not low spec server issue but my server does have a bunch of security in place due to the nature of our project. I am leaning towards that because of other issues.

caredesign.net
Quote · 15 May 2014

Well the solution that was suggested, and worked for me, doesn't jive with the tutorial for installing RMS.

Instead of using

cd /opt/ray_server

./run_daemon.sh 

 

I used 

cd /opt/ray_server

./red5.sh


After doing this I rebooted the server and RMS came online with it. 

 

My resources were running very high after the reboot, but I think the server was running backups at the time.

Quote · 15 May 2014

Doesn't make a whole lot of sense since:

cd /opt/ray_server
./run_daemon.sh

(run_daemon.sh) Starts red5.sh.

You are just kind of omitting a step.

If you are checking via the top command you will see java appear and disappear on a regular basis, which would seem like it has stopped, but usually there are just other processes happening at the time. So even though you don't see it all the time, it most likely is still running.

If you have enough ram and cpu power then nothing to worry about. Limited cpu power and memory systems do mess up, but generally if they are shitty quality like openvz vps crap.

There are other ways to make it work of course too.

Any way nice to hear you got it squared away.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 15 May 2014

*Facepalm*

The RAY_SERVER_PATH={insert path here} wasn't entered correctly. That explains why it wouldn't work.

I looked at that damn file more than once. That's what I get for working sick, and going until 3:30am.

 If I should ever get cocky and y'all want to poke fun at me later you can just point to this thread. lol Embarassed

Thanks for the added comment @gameutopia. It spurred me on to keep looking into this and find my brain fart.

Quote · 15 May 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.