Configuring SySAM to start automatically when
the server is restarted
Make sure the license.dat file has the correct path for the SYBASE daemon.
Using an account with “root” privileges, log in to the machine where you installed the asset management software.
Use a text editor to create a new file, /etc/rc3.d/S17lmgrd.
Add the following lines to /etc/rc3.d/S17lmgrd:
You must know the name of both the Sybase release directory
as well as the Sybase SySAM release directory.
SYBASE=<Sybase reldir> SYBASE_SYSAM=<SySam rel> #<SySAM rel> should be SYSAM-1_0 for instance /bin/su user_name -c 'echo starting lmgrd> \ $SYBASE/$SYBASE_SYSAM/bin/boot.log' /bin/nohup /bin/su user_name -c 'umask 022; \ $SYBASE/$SYBASE_SYSAM/bin/lmgrd -c \ $SYBASE/$SYBASE_SYSAM/licenses/license.dat -l \ $SYBASE/$SYBASE/$SYBASE_SYSAM/log/lmgrd.log >> \ $SYBASE/$SYBASE_SYSAM/log/boot.log'\ /bin/su user_name -c 'echo sleep 5>> \ $SYBASE/$SYBASE_SYSAM/bin/boot.log' /bin/sleep 5 /bin/su user_name -c 'echo lmdiag >> \ $SYBASE/$SYBASE_SYSAM/bin/boot.log' /bin/su user_name -c '$SYBASE/$SYBASE_SYSAM/bin/lmutil lmdiag -n -c \ $SYBASE/$SYBASE_SYSAM/bin/license.dat>> \ $SYBASE/$SYBASE_SYSAM/bin/boot.log' /bin/su user_name -c 'echo exiting >> \ $SYBASE/$SYBASE_SYSAM/bin/boot.log'
Save /etc/rc3.d/S17lmgrd and exit the text editor.
Change the permissions, ownership, and group for /etc/rc3.d/S17lmgrd by entering:
chmod 744 /etc/rc3.d/S17lmgrd chown root /etc/rc3.d/S17lmgrd chgrp sys /etc/rc3.d/S17lmgrd