I have a linux license server. Everything is installed correctly. I can start my license manually, no problem. But when I try to start it automatically in the rc.local file, I get errors.
Here is my error:
16:50:22 (lmgrd) Server's System Date and Time: Wed May 07 2014 16:50:22 EDT
16:50:22 (lmgrd) SLOG: Summary LOG statistics is enabled.
16:50:22 (lmgrd) The license server manager (lmgrd) running as root:
16:50:22 (lmgrd) This is a potential security problem
16:50:22 (lmgrd) and is not recommended.
16:50:22 (lmgrd) license manager: can't initialize:Cannot find license file.
16:50:22 (lmgrd) The license files (or license server system network addresses) attempted are
16:50:22 (lmgrd) listed below. Use LM_LICENSE_FILE to use a different license file,
16:50:22 (lmgrd) or contact your software provider for a license file.
16:50:22 (lmgrd) Filename: "/usr/local/flexlm/licenses/license.dat"
16:50:22 (lmgrd) License Path: "/usr/local/flexlm/licenses/license.dat"
16:50:22 (lmgrd) FlexNet Licensing error:-1,359
16:50:22 (lmgrd) System Error:2 No such file or directory
16:50:22 (lmgrd) For further information, refer to the FlexNet Licensing documentation,available at "www.flexerasoftware.com". 16:50:22 (lmgrd) Using license file "/usr/local/flexlm/licenses/license.dat"
Here is my rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/bin/su <user id> -c ‘echo starting lmgrd>\
/opt/flexnetserver/boot.log’
/usr/bin/nohup/bin/su <user id> -c ‘umask 022;\
/opt/flexnetserver/lmgrd -c\
/opt/flexnetserver/maya2015.lic >> \
/opt/flexnetserver/boot.log ‘
/bin/su <user id> -c ‘echo sleep 5 >> \
/opt/flexnetserver/boot.log ‘
/bin/sleep 5
/bin/su <user id> -c ‘echo lmdiag >>\
/opt/flexnetserver/boot.log ‘
/bin/su <user id> -c ‘/opt/flexlm11.11/lmutil lmdiag -n -c\
/opt/flexnetserver/maya2015.lic >> \
/opt/flexnetserver/boot.log ‘
/bin/su <user id> -c ‘echo exiting >>\
/opt/flexnetserver/boot.log ‘
Just to confirm. My license file is /opt/flexnetserver/maya2015.lic. This license runs correctly when started manually. For some reason it is still looking for that license.dat file. Not sure why.