Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: afj@DrMemory.nuc.ucla.edu (Andy Jacobson)
Subject: Re: rc3.d question: Anyone using lmgrd on OSF1?
Date: 5 Oct 1994 05:36:10 GMT	[thread overview]
Message-ID: <36te0a$t6d@news.mic.ucla.edu> (raw)
In-Reply-To: 36rotj$4n5@taurus.fccc.edu


OK, well Thanks to all who have replied to this thread. We got several good
responses. Here's a summary of what came via e-mail. We used the first
sample file, and don't seem to need to set any env't variables, It works
great 'out of the box' 
Cheers,
A.J.

From: Kjell Randa <bg53079@bginu6.nho.hydro.com>
We have been using Flexlm on Alpha for both AVS and BuildeXccesory for quite
some time without problems. For AVS we have the following setup:
 
In /sbin/init.d we have a file named flex containing the following:
 
#!/bin/sh -f
# Start/stopp av Flex.  18/8 94 Kjell Randa
#
USAGE="Usage: $0 start|stop"
if [ $# != 1 ];then
   echo $USAGE
   exit 1
fi
if [ -f /etc/lmgrd ];then
case $1 in
        'start')
           /etc/lmgrd -c /usr/avs/license/license.dat > /var/flex/flex.log &
           echo "Flex licence manager started"
           ;;
        'stop')
           /etc/lmdown -c /usr/avs/license/license.dat -q
           ;;
        *)
           echo $USAGE
           exit 1
esac
else
        echo 'No Flex installation found, exiting'
        exit 1
fi
 
In /sbin/rc3.d we have a file named S90flex which is a link to the flex file
listed above.
 
In /sbin/rc0.d we have a file named K17flex which is also a link to the above fle.
 
This start and stop the Flexlm licence manager at system startup and shutdown.
 
Tu use avs with this setup each user has to issue the following command prior tstarting avs:
 
setenv LM_LICENSE_FILE /usr/avs/license/license.dat
 
Regards
Kjell Randa
Norsk Hydro
NORWAY
 


From: John Kohl <jtk@atria.com>

> THIS IS A MESSAGE IN 'MIME' FORMAT.
> If you are reading this, your mail reader may not support MIME.
> Some parts of this message will be readable as plain text.
 
--mysteryboxofun
Content-Type: text/plain
 
Your lmgrd is probably getting killed by the getty revoking the terminal
from previous sessions.
 
Try a wrapper around the lmgrd like this:
 
detach lmgrd <args>
--mysteryboxofun
Content-Type: text/plain; charset=US-ASCII; name="detach.c"
Content-Description: ~/src/detach.c
Content-Transfer-Encoding: quoted-printable
 
main(int argc, char *argv[])
{
    close(0);
    close(1);
    close(2);
    setsid();
    ++argv;
    execv(argv[0], argv);
}
 
 
--mysteryboxofun--


From: boccio@cc.swarthmore.edu (John Boccio)
 Hi,
 
I use the license manager from AVS. It is used by AVS, MATLAB and IDL.
 
The following file is in /sbin/rc3.d
 
It is name S67lmgrd
 
The number 67 just makes it start after lpd.
 
We have had now trouble at all.
 
John Boccio
boccio@cc.swarthmore.edu
 
# Control the Flexlm license manager daemon
#
 
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
 
AVS_PATH=/usr/local/avs
LM_LICENSE_FILE=/usr/local/avs/license/license.dat
export AVS_PATH LM_LICENSE_FILE
if [ -x ${AVS_PATH:-/usr/avs}/license/lmgrd ]; then
  echo Starting lmgrd
  ${AVS_PATH:-/usr/avs}/license/lmgrd \
  -c ${LM_LICENSE_FILE:-/usr/local/flexlm/licenses/license.dat} \
  -l /tmp/lmgrd.log -2 -p &
  sleep 5
fi
 

From: Irving Reid <irving@sys.toronto.edu>
Did you redirect the output from lmgrd somewhere?  lmgrd normally writes
its log messages to standard output, and that might be biting you.
 
I work for a company that distributes a package that uses FLEXlm on OSF/1,
and we haven't had any problems like yours.
 
If you don't mind having all your FLEXlm messages in the syslog log, try
 
{path}/lmgrd -c {path}/license.dat | logger -t lmgrd -p local2,info 2>&1
 
 - irving -
 
-- 
Andy Jacobson   <afj@DrMemory.nuc.ucla.edu>  <afj@chem.ucla.edu>


  reply	other threads:[~1994-10-05  5:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-04  6:48 rc3.d question: Anyone using lmgrd on OSF1? Andy Jacobson
1994-10-04 13:41 ` Jonathan Rozes
1994-10-04 14:30   ` Steve Rosen
1994-10-05  5:36     ` Andy Jacobson [this message]
1994-10-05 15:18 ` Malcolm Beattie
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox