Skip to main content
1-Visitor
November 1, 2022
Solved

ptc_d and lockfiles

  • November 1, 2022
  • 2 replies
  • 2496 views

I need to support two licence files (different companies) on the same server.  Its easy enough to set the ports to different numbers, but ptc_d insists on creating lockptc_d in /var/tmp.  Setting TMPDIR doesn't seem to help.   Does anyone know a way (or an environment variable) to force it to create its lockfile elsewhere?   The issue is that when starting the second server, it can't open the lockfile and then dies.

 

Thanks,

 

Best answer by RandyJones

@DC_9962934 wrote:

I need to support two licence files (different companies) on the same server.  Its easy enough to set the ports to different numbers, but ptc_d insists on creating lockptc_d in /var/tmp.  Setting TMPDIR doesn't seem to help.   Does anyone know a way (or an environment variable) to force it to create its lockfile elsewhere?   The issue is that when starting the second server, it can't open the lockfile and then dies.

 

Thanks,

 


Since you are apparently running this on Linux you could run each license server in its own container.

2 replies

23-Emerald IV
November 1, 2022

A quick Google search seems to indicate this is intentional.  Is there some reason you can't just combine the license files and then use the options file to control who is allowed to access each license (and how many)?

TomU_0-1667331247325.png

https://community.flexera.com/t5/FlexNet-Publisher-Forum/When-License-Manger-is-started-a-directory-var-tmp-flexlm-with/m-p/125047

 

 

1-Visitor
November 2, 2022

Unfortunately I tried that.  But since the licenses are from different companies/accounts, it would only see one or the other.  I've already done a combine for multiple licenses from the same company/account and that works fine.

20-Turquoise
November 1, 2022

@DC_9962934 wrote:

I need to support two licence files (different companies) on the same server.  Its easy enough to set the ports to different numbers, but ptc_d insists on creating lockptc_d in /var/tmp.  Setting TMPDIR doesn't seem to help.   Does anyone know a way (or an environment variable) to force it to create its lockfile elsewhere?   The issue is that when starting the second server, it can't open the lockfile and then dies.

 

Thanks,

 


Since you are apparently running this on Linux you could run each license server in its own container.

1-Visitor
November 2, 2022

Yes, a bit of docker massaging (to get the IDs/etc under control) and I'm good to go.   Thanks for the suggestion, since I had a brain freeze and that never even occurred to me.

 

20-Turquoise
November 2, 2022

@DC_9962934 wrote:

Yes, a bit of docker massaging (to get the IDs/etc under control) and I'm good to go. 


Have a look at the --mac-address docker argument:

--mac-address=00-B0-D0-63-C2-26