CmapServer v5.03.03 for Linux Daemon Question

Having problems with IHMC CmapServer? Think you have found a bug? Let us know!
Forum rules
Before you post a problem or bug, please be sure you have included the version number of IHMC CmapServer, the operating system and version, the amount of RAM, and any other information that allows us to be able to replicate the problem you are having. (i.e. what were you doing when the problem occur? were you running another program (application) by the time you have the problem?)
Post Reply
Posts: 1
Joined: Tue Feb 23, 2010 6:01 pm

CmapServer v5.03.03 for Linux Daemon Question

Post by btomjack »


I got CmapServer installed no issues on a headless machine with the silent installation and it is working, however i would prefer if i could Daemonize the installation instead of just backgrounding the processing using the rc.local file which is the suggested solution on he server download page.

I stumbled across: ... e=htmltext which seems to indicate that it is possible to do however i am not able to see any documentation about this process. If anyone has any insight on this procedure it would be greatly appreciated.
Site Admin
Posts: 734
Joined: Sat Dec 13, 2008 2:22 pm

Re: CmapServer v5.03.03 for Linux Daemon Question

Post by cmapadmin »


Use "chkconfig" in order to add IHMC CmapServer as a start or modify a service.

Posts: 1
Joined: Sun Oct 17, 2010 1:57 pm

Re: CmapServer v5.03.03 for Linux Daemon Question

Post by walace.bonfim »

Hi all,

Could you please give me some hints on how to install server using file?
I follow the instructions on server download page, but I´he got an error (see bellow).



root@XXX [/home/walace/cmaptools]# ls
total 189992
-rw-rw-r-- 1 root root 7043 Oct 20 17:40
-rwxr-xr-x 1 root root 8985 Oct 20 17:33
drwxr-xr-x 4 root root 4096 Oct 20 17:40 install.dir.16851
-rwxr-xr-x 1 root root 80026449 Oct 15 10:27 LinuxCmapServer_v5.04_07-16-10.bin
-rwxr-xr-x 1 root root 114293744 Oct 20 16:32 LinuxCmapTools_v5.04_07-16-10.bin
root@organum01 [/home/walace/cmaptools]# ./LinuxCmapServer_v5.04_07-16-10.bin -f ./
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

./LinuxCmapServer_v5.04_07-16-10.bin: line 2479: /home/walace/cmaptools/install.dir.17302/Linux/resource/jre/bin/java: cannot execute binary file
./LinuxCmapServer_v5.04_07-16-10.bin: line 2479: /home/walace/cmaptools/install.dir.17302/Linux/resource/jre/bin/java: Success
root@XXX [/home/walace/cmaptools]#
Posts: 11
Joined: Wed Oct 20, 2010 12:44 pm

Re: CmapServer v5.03.03 for Linux Daemon Question

Post by magsilva »


Although the installation instructions at ... Plat=Linux recommend adding a statement to /etc/rclocal (nohup /Applications/IHMC_CmapServer/CmapServer &), I prefer using standard init scripts. I crafted one that works just fine (at least for Ubuntu, but should work for other Linux distributions). You just have to set up the vars DAEMON and DAEMON_USER, the rest can be left as it is (I always run CmapServer as a different user than root, looks safer - don't forget to change the ownership and permissions of the CmapServer accordingly).

Code: Select all


# Provides:          cmapserver
# Required-Start:    $network $local_fs $remote_fs
# Required-Stop:     $network $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: start CmapServer daemon



# See if the daemon is there
test -x $DAEMON || exit 0

. /lib/lsb/init-functions

case "$1" in
                log_daemon_msg "Starting the CmapServer daemon" "cmapserver"
                start-stop-daemon --start --quiet --chuid $DAEMON_USER --pidfile $PID_FILE --make-pidfile --oknodo --background --exec $DAEMON --
                log_end_msg $?
                log_daemon_msg "Stopping the CmapServer daemon" "cmapserver"
                start-stop-daemon --stop --quiet --pidfile $PID_FILE --oknodo --exec $DAEMON --
                PID=`ps -u $DAEMON_USER -o pid --no-headers | cut -c 2-`
                kill $PID
                rm -f $PID
                log_end_msg $?
                $0 stop && sleep 2 && $0 start
                status_of_proc -p $PID_FILE $DAEMON $DAEMON_USER && exit 0 || exit $?
                echo "Usage: $0 {start|stop|restart|force-reload|status}"
                exit 1
Post Reply