note: you need root privileges to do this.
1. Edit the start/stop script realchat
:
Set SERVERDIR to the folder you placed the server into. Do not include the trailing '/'.
SERVERDIR=/home/username/rcs
2. Copy and install the script to your /etc/init.d
directory:
cp ./realchat /etc/init.d/ update-rc.d realchat defaults
The script is installed and RealChat will be started automatically next time you reboot your system.
note: you need root privileges to do this.
One of our customers ( avg. 50-60 simoultaneous users ) had a problem with Java and RealChat Server got overloaded when running for long time ( two weeks or so ) and solved them by setting up a daily restart of the server ( they are doing it using cron every morning at 4:30 AM ).
You can set it by adding a couple of lines to your crontab file:
# crontab fragment for RealChat service # restarts the server every morning at 4:30 AM 29 04 * * * /_FULL_PATH_TO_THE_SERVER_DIRECTORY_/realchat stop > /dev/null 30 04 * * * /_FULL_PATH_TO_THE_SERVER_DIRECTORY_/realchat start > /dev/null
You can use ServiceMaster ( available for free from: http://www.kcmultimedia.com/smaster/ ) You need to specify the path to server config files as the first argument to the RealChatServer.class i.e:
'java RealChatServer c:\rcs\server\'
This often happens when a user is on a slow connection or your bandwidth gets oveloaded. Known solution is to increase the dropTimeout
parameter in your RealChatServer.conf