Starting and stopping network license servers

StepsManually starting SySAM servers

  1. Go to $SYBASE/SYSAM-2_0/bin.

  2. Execute:

    sysam start
    

StepsManually stopping a SySAM server

  1. In a Command Prompt window, go to $SYBASE/SYSAM-2_0/bin.

  2. Enter:

    sysam stop
    

StepsStarting and stopping SySAM as an automatic service

  1. To configure SySAM to start automatically when a host server is restarted:

    1. Using an account with root privileges, log on to the machine where you installed the Sybase Software Asset Management (SySAM) software.

    2. Create a script that the system will use to start and shutdown. The main purpose of such a script is to avoid running the License Manager with root privileges, as these are not required. The following example script assumes that the SySAM License Manager will be run as the user sybase, and was installed into /opt/sybase. Change these parameters to match your specific installation:

      #!/bin/sh
      #
      SYBUSER=sybase
      SYBASE=/opt/sybase
      SYSAM=$SYBASE/SYSAM-2_0
      case "$1" in
      	 	 'start')
      	 su $SYBUSER -c "echo `date` starting lmgrd
      >> $SYSAM/log/boot.log"
      	 		 		nohup su $SYBUSER -c "umask 022;
      $SYSAM/bin/sysam start >> $SYBASE/log/boot.log"
      		 			 ;; 
      	 		'stop')
      	 			su $SYBUSER -c "echo `date` stopping lmgrd>> $SYSAM/log/boot.log" 
      	 			su $SYBUSER -c "$SYSAM/bin/sysam stop -q
      >> $SYSAM/log/boot.log" 
      	 			;;
      		 		*)
      	 				echo "Usage: $0 { start | stop }"
      	 				exit 1 
      	 				;;
      esac
      exit 0
      
    3. Save the script to the file name appropriate for your operating system.

      For Linux:

      /etc/rc.d/init.d/sysam.boot
      
    4. Change the permissions, ownership, and group for the script. For example, assuming the script was stored as /etc/init.d/sysam.boot enter:

      chmod 744 /etc/init.d/sysam.boot
      chown root /etc/init.d/sysam.boot
      chgrp sys /etc/init.d/sysam.boot
      
    5. Create an appropriately named link to start the License Manager during start-up (typically, S + run number + script name):

      ln -s /etc/rc.d/init.d/sysam.boot /etc/rc.d/rc3.d/S70sysam

    6. Create an appropriately named link to stop the License Manager during shutdown (typically, K + run number + script name):

      ln -s /etc/rc.d/init.d/sysam.boot /etc/rc.d/rc2.d/K02sysam

    NoteThe run number (2 above) should be chosen such that it is lower than that of subsystems required by SySAM such as networking services and higher than the run number of applications that require SySAM such as Adaptive Server Enterprise.