Installing IBM UrbanCode Release as a service on Linux

To install IBM® UrbanCode™ Release as a service on Linux, add an executable init script to your system after you install IBM UrbanCode Release.

  1. Install IBM UrbanCode Release.
  2. Create an executable init script and place it in the /etc folder.
    For example, /etc/init.d/init_uc.
    The following code fragment contains an example init script.
    
    #!/bin/sh
    # Service to start|stop IBM UrbanCode Release
    ###
    # chkconfig: 235 98 56
    # description:
    ###
    case "$1" in
      start)
        echo -n "Starting UrbanCode service"
        date "+Start OK in Dir /CTA: %d - %m - %Y at %T" > /opt/services_started.txt
        sh /opt/IBM/UCRelease/server/server.startup
        ;;
      stop)
        echo -n "Stopping UrbanCode service"
        date "+Stop OK in Dir /CTA: %d - %m - %Y at %T" > /opt/services_stopped.txt
        sh /opt/IBM/UCRelease/server/server.shutdown
        ;;
      *)
        echo "Usage: IBM Products {start|stop}"
        exit 1
      esac
    
      exit 0
  3. Add the service to your system with a command similar to this one: /sbin/chkconfig --add init_uc.
  4. Turn on the service with a command similar to this example: chkconfig init_uc on.
  5. Optional: Make sure that the service is added to your system by listing the service: chkconfig --list init_uc.
To turn off the service, use a command similar to this one: chkconfig init_uc off.