|
|
| Home Online Manual Installation Guide for Linux Running the Chat Server |
|
Running chat server in the foreground After installing chat software successfully. you can run your chat server. It's recommended to run chat server in foreground first : /usr/glassroom/bin/glassroom.sh If your server is installed successfully, this message will display : servletrunner starting with settings: port = 8100 backlog = 1000 max handlers = 60000 timeout = 180000 servlet dir = /usr/glassroom document dir = ./examples servlet propfile = /usr/glassroom/gr.properties Now press ctrl-c to stop the chat server. Then start chat server in background. Running chat server in the background Run your chat server by executing this command : /usr/glassroom/bin/glassroom.sh start In this case a message will appear like this : GlassRoom: start at Fri May 17 20:44:30 UST 2002 and GlassRoom will start in background. All events and connections are saved to log files : /usr/glassroom/log/connection.log /usr/glassroom/log/error.log Use "more" to view them : more /usr/glassroom/log/connection.log more /usr/glassroom/log/error.log
Configuring GlassRoom as a service If you want that your chat server runs automatically when you restarting your machine execute these commands :
cp /usr/glassroom/bin/glassroom.sh /etc/rc.d/init.d/ mv /etc/rc.d/init.d/glassroom.sh /etc/rc.d/init.d/glassroom /sbin/chkconfig glassroom on |