Installation & Licensing
Welcome to Autodesk’s Installation and Licensing Forums. Share your knowledge, ask questions, and explore popular Download, Installation, and Licensing topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux License Server autostart

1 REPLY 1
Reply
Message 1 of 2
digitalmaciek
1825 Views, 1 Reply

Linux License Server autostart

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.
1 REPLY 1
Message 2 of 2

Hello:

 

Setting up the license server on Linux is noted here:

 

http://upandready.typepad.com/up_and_ready/2012/07/quick-start-setting-up-a-licensing-server-on-linu...

 

You can setup some linux scripting to auto-start it.  The instructions for the auto-start script is noted on page 36 – step 8 (documentation).

 

Documentation for the commands

 

You can try the following script:

 

#!/bin/sh

touch /var/lock/subsys/local

 

/bin/su nobody -c ‘echo starting lmgrd>\

/opt/flexnetserver/boot.log’

/usr/bin/nohup/bin/su nobody -c ‘umask 022;\

/opt/flexnetserver/lmgrd -c\

/opt/flexnetserver/maya2015.lic >> \

/opt/flexnetserver/boot.log ‘

/bin/su nobody -c ‘echo sleep 5 >> \

/opt/flexnetserver/boot.log ‘

/bin/sleep 5

/bin/su nobody -c ‘echo lmdiag >>\

/opt/flexnetserver/boot.log ‘

/bin/su nobody -c ‘/opt/flexnetserver/lmutil lmdiag -n -c\

/opt/flexnetserver/maya2015.lic >> \

/opt/flexnetserver/boot.log ‘

/bin/su nobody -c ‘echo exiting >>\

/opt/flexnetserver/boot.log ‘

 

Regards,


Byron M.
Installation and Licensing

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report