From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c17f02eb35c6d1ae X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-05 07:49:10 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!ctc.com!news.mic.ucla.edu!DrMemory.nuc.ucla.edu!afj From: afj@DrMemory.nuc.ucla.edu (Andy Jacobson) Newsgroups: comp.unix.osf.osf1 Subject: Re: rc3.d question: Anyone using lmgrd on OSF1? Date: 5 Oct 1994 05:36:10 GMT Organization: UCLA Dept. of Pharmacology, Los Angeles, CA 90024-6948 Sender: afj@DrMemory.nuc.ucla.edu (Andy Jacobson) Distribution: world Message-ID: <36te0a$t6d@news.mic.ucla.edu> References: <36qtrt$c75@news.mic.ucla.edu> <36rm2p$q4t@Emerald.tufts.edu> <36rotj$4n5@taurus.fccc.edu> Reply-To: afj@DrMemory.nuc.ucla.edu NNTP-Posting-Host: drmemory.nuc.ucla.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 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 > 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 --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 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