Wednesday, November 04, 2009

Starting and Stopping the CmapServer

One can stop CmapServer using AdminTool. To get AdminTool just download the CmapServer software from the IHMC site. The only thing you need from the folder is the AdminTool application.

Rodrigo from IHMC fame told me how to start the CmapServer and stop it from the command line interface. First ssh into the server running the CmapServer. Get to the right location and run the command mentioned shortly. To get to the right place I need to 'sudo su' since I installed as root.  Here are the commands: 
  • sudo su
  • cd /root/IHMC_CmapServer
  • nohup ./bin/CmapServer &
  • (then it replies:)
  • root@xyz:~/IHMC_CmapServer# nohup: ignoring input and appending output to `nohup.out'
  • (and inserts a blank line and it is then that I press the enter key again and I'm back to the prompt!)
    And to stop it you need to first find out the CmapServer process ID, as a regular user:
    • ps -Af | grep -i CmapServer
    • (it won't be obvious which number is the PID. The first word of output will be 'root'. right after that is the PID#. Also, there will be a line for the actual 'grep' process--ignore that line.)
     Then to stop it using the just-discovered process id:
    • sudo kill -9 PID (where you type in the process id # in place of 'PID')
    • (for example, 'sudo kill -9 1286)
      To make configuration adjustments you need to first become root (because the directory containing all of these files in inside the 'root' directory), then open the file with an editor such as nano:
      • sudo su
      • nano /root/IHMC_CmapServer/bin/serverconfig.txt
      To reinstall update cmapserver go to correct VZ: ssh -2 -c blowfish -X user@ipaddress, and:
         1. Make sure that echo $DISPLAY returns localhost:10.0  If it doesn't try running...
         2. set DISPLAY=:10.0; export DISPLAY (not sure if sudo or sudo su is needed)
         3. Then stop CmapServer
         4. Then run, sudo /root/IHMC_CmapServer/bin/update
         5. Then it should nicely do the x-term thing and walk you through it!

      1 comment:

      1. OK--I installed the CmapServer software on my Mac, and ran the Admin software, and sure enough--I'm able to administer the CmapServer from the Admin software on my mac--quite handy!