Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

  • The cmapserver script
    Please read point 5 under section "How to run CmapServer as a service in Mac OS X" VERY carefully.
    No Format
     
     It is assumed that the CmapServer program has been installed on "/Applications/IHMC/CmapServer".
    
    However, the program will be installed, by default, in "/IHMC Cmapserver/" directory under a directory you've chosen. There is a space in the directory name. And this space makes the cmapserver script on the above mentioned webpage does not work properly. I solved this problem by creating a symbolic link in /usr/local/CmapServer/ directory. My script is adapted from the start up script for MySQL.
    Code Block
    titlecmapserver
    borderStylesolid
    titlecmapserver
    #!/bin/sh
    #
    # /Library/StartupItems/CmapServer/CmapServer
    #
    # A script to automatically start up CmapServer on system bootup
    # for Mac OS X. 
    
    # Suppress the annoying "$1: unbound variable" error when no option
    # was given
    if [ -z $1 ] ; then
    	echo "Usage: $0 [start|stop] "
    	exit 1
    fi
    
    # Source the common setup functions for startup scripts
    test -r /etc/rc.common || exit 1
    . /etc/rc.common
    
    # The path to the cmapserver script.
    SCRIPT="/usr/local/CmapServer/bin/CmapServer.app/Contents/MacOS/CmapServer"
    
    StartService ()
    {
    		ConsoleMessage "Starting CmapServer"
    		$SCRIPT & > /dev/null 2>&1
    }
    
    StopService ()
    {
    	ConsoleMessage "Stopping CmapServer"
    	killall CmapServer  
    }
    
    	RunService "$1"
    
  • The StartupParameters.plist file
    Here is script I am using.
    Code Block
    borderStylesolid
    titleStartupParameter.plist
    borderStylesolid
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
        <dict>
    	<key>Description</key>
    	<string>CmapServer</string>
    	<key>OrderPreference</key>
    	<string>Last</string>
    	<key>Provides</key>
    	<array>
    		<string>cmapserver</string>
    	</array>
    	<key>Uses</key>
    	<array>
    		<string>Network</string>
    		<string>Resolver</string>
    	</array>
        </dict>
    </plist>
    

...