So yea, installed per the manual. Run ./red5.sh and chat etc works fine, but run ./run_daemon.sh and I get the following "./run_daemon.sh: line 4: /opt/ray_server: is a directory", then a pause. Chat doesn't work. What's up?
So yea, installed per the manual. Run ./red5.sh and chat etc works fine, but run ./run_daemon.sh and I get the following "./run_daemon.sh: line 4: /opt/ray_server: is a directory", then a pause. Chat doesn't work. What's up? |
Why are you trying ./run_daemon.sh? I just type this ./red5.sh Once it starts running....then press Ctrl Z to stop it....then at the prompt....type bg and press enter. It will background the service for you and leave it running and you are free to close the terminal window. If you use that what you are trying to run...it will actually look for the instances of red5 and java that are running and kills the processes. Take a look at the file run_daemon.sh in an editor and you will see how it works. Jeremy |
Its important to be exact with you run_daemon.sh file. here is an example: #Path to Ray Server's folder
I think you have a colon instead of semicolon. Happiness is a warm gun. |
Why are you trying ./run_daemon.sh? I just type this ./red5.sh Once it starts running....then press Ctrl Z to stop it....then at the prompt....type bg and press enter. It will background the service for you and leave it running and you are free to close the terminal window. If you use that what you are trying to run...it will actually look for the instances of red5 and java that are running and kills the processes. Take a look at the file run_daemon.sh in an editor and you will see how it works. Urr, yea, that's really odd. Manual says to ./run_daemon.sh to run the server as a background process, and that it can be added to server startup script to start automatically after server reboot. That would make sense with the name "daemon". Here's the manual so you can see for your self http://www.boonex.com/trac/dolphin/wiki/RayMediaServerInstallation - see "Running Media Server". Something's wrong here. If you run red5.sh directly, what would you put in a script to make it run when the web server starts? |
Its important to be exact with you run_daemon.sh file. here is an example: #Path to Ray Server's folder
I think you have a colon instead of semicolon. Nope. Checked my syntax over and over! |
Why are you trying ./run_daemon.sh? I just type this ./red5.sh Once it starts running....then press Ctrl Z to stop it....then at the prompt....type bg and press enter. It will background the service for you and leave it running and you are free to close the terminal window. I do all that, close the terminal, and it stops even after doing "bg". |
i am going to pipe in here, and yall can all tell me to shut up, but the standard is this from my experience with RMS.
./red5.sh is mostly used for troubleshooting, as it produces the output.
./run_daemon.sh runs in the background and if you want to set it so it restarts when and if the server were to restart, you would add a line to initd.
using the method referenced in ./red5.sh ctrl-z bg, you will in fact run in the background or should. but, this is impossible to automate, hence the need for ./run_daemon.sh as this is then what is set to automate.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
OK thanks guys. I got it going in the end. ./run_daemon.sh now works and runs the background process (daemon) as it should. Don't quite know why it was a problem, but I changed the run_daemon.sh var from "RAY_SERVER_PATH= /opt/ray_server;" to "RAY_SERVER_PATH=/opt/ray_server;" - i.e. removed the space after the "=". Strange but true! |