Manually starting SySAM servers
Go to $SYBASE/SYSAM-2_0/bin.
Execute:
sysam start
Manually stopping a SySAM server
In a Command Prompt window, go to $SYBASE/SYSAM-2_0/bin.
Enter:
sysam stop
Starting and stopping SySAM as an automatic service
To configure SySAM to start automatically when a host server is restarted:
Using an account with root privileges, log on to the machine where you installed the Sybase Software Asset Management (SySAM) software.
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
Save the script to the file name appropriate for your operating system.
Solaris:
/etc/init.d/sysam.boot
IBM AIX:
/etc/rc.d/init.d/sysam.boot
HP-UX:
/sbin/init.d/sysam.boot
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
Create an appropriately named link to start the License Manager during start-up (typically, S + run number + script name):
Solaris:
ln -s /etc/init.d/sysam.boot /etc/rc3.d/S70sysam
IBM AIX:
ln -s /etc/rc.d/init.d/sysam.boot
/etc/rc.d/rc3.d/S70sysam
HP-UX:
ln -s /sbin/init.d/sysam.boot /sbin/rc3.d/S070sysam
Create an appropriately named link to stop the License Manager during shutdown (typically, K + run number + script name):
Solaris:
ln -s /etc/init.d/sysam.boot /etc/rc2.d/K02sysam
IBM AIX:
ln -s /etc/rc.d/init.d/sysam.boot /etc/rc.d/rc2.d/K02sysam
HP-UX:
ln -s /sbin/init.d/sysam.boot /sbin/rc2.d/K002sysam
The 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.