Help - Search - Members - Calendar
Full Version: Autostarting a chat server after restart
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
mayankutty
hi,

i have a chat server installed on my server and it takes the following commands to get it started using ssh.

QUOTE
cd /home/virtual/site6/fst/var/www/html/tbot Server

/usr/java/j2sdk1.4.2_06/bin/java -classpath /home/virtual/site6/fst/var/www/html/tbot Server

then i would press Cntrl+Z

bg 1


is there a way i can have the server to do this automatically? i am not very good with linux. Thank you in advance. My server is ensim basic 4.0.3.
James Jhurani
why do you cd into that directory first? as long as your using full path calls... its all good.

put this in rc.local

CODE
# running tbot server

/usr/java/j2sdk1.4.2_06/bin/java -classpath /home/virtual/site6/fst/var/www/html/tbot Server &


then restart and see if it worked =)
the ampersand means go to the bg... saves u that whoe ctrl+z and bg 1 stuff.

-James
mayankutty
for some reason it has to be restarted from the directory. It wouldnt work any other way.. i dont know why.. the chat people also said i must cd into the directory also. .

infact i just tried starting it outside the directory and it said

QUOTE
ERROR - The file 'contenttypes.txt' is missing or cannot be read
so it seems like it need the files from that directory.. weird.
mayankutty
can anyone help? should i copy everything in the chat directory to rc.d directory? i am a beginner in linux.
Tex
QUOTE (mayankutty)
can anyone help? should i copy everything in the chat directory to rc.d directory? i am a beginner in linux.


No don't do that, whats the name of the chat server your working with
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.