* rc3.d question: Anyone using lmgrd on OSF1?
@ 1994-10-04 6:48 Andy Jacobson
1994-10-04 13:41 ` Jonathan Rozes
1994-10-05 15:18 ` Malcolm Beattie
0 siblings, 2 replies; 5+ messages in thread
From: Andy Jacobson @ 1994-10-04 6:48 UTC (permalink / raw)
Riddle me this: We have AVS here on a Dec Alpha, which uses Flexlm
license manager. (This is not the DEC license manager), anyway, to
get the lmgrd daemon to startup at boot, we put the command in /sbin/rc3.d
at the end, as something like S96lmgrdstart. In the file we put the
command "{path}/lmgrd -c {path}/license.file" followed by an "&" to keep
the boot going. No dice. No errors messages. Changing the command to
"sh {command} &" did nothing for us either. We finally gave up and
hardwired it into the end of rc3 itself with no &, whereapon it works, and
xdm comes up. This is not ideal as it still has the console, but it doesn't
seem to want to do anything when started in the background. I never
encounter this problem with any other version of unix and rc files. When
started on the command line by root, lmgrd runs fine in the background.
Any ideas?
Thanks,
A.J.
--
Andy Jacobson <afj@DrMemory.nuc.ucla.edu> <afj@chem.ucla.edu>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rc3.d question: Anyone using lmgrd on OSF1?
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 15:18 ` Malcolm Beattie
1 sibling, 1 reply; 5+ messages in thread
From: Jonathan Rozes @ 1994-10-04 13:41 UTC (permalink / raw)
In article c75@news.mic.ucla.edu, afj@DrMemory.nuc.ucla.edu (Andy Jacobson) writes:
>
>Riddle me this: We have AVS here on a Dec Alpha, which uses Flexlm
>license manager. (This is not the DEC license manager), anyway, to
>get the lmgrd daemon to startup at boot, we put the command in /sbin/rc3.d
>at the end, as something like S96lmgrdstart. In the file we put the
>command "{path}/lmgrd -c {path}/license.file" followed by an "&" to keep
>the boot going. No dice. No errors messages. Changing the command to
>"sh {command} &" did nothing for us either. We finally gave up and
>hardwired it into the end of rc3 itself with no &, whereapon it works, and
>xdm comes up. This is not ideal as it still has the console, but it doesn't
>seem to want to do anything when started in the background. I never
>encounter this problem with any other version of unix and rc files. When
>started on the command line by root, lmgrd runs fine in the background.
We use several packages that implement FlexLM. My lmgrd comes from LSF and
starts roughly like this:
$LSF_SERVERDIR/lmgrd \
-c /usr/lsf/etc/license.dat | sh -c \
'while read line; do echo "$line" >> /var/adm/flexlm.log ; done ' \
2>&1 &
I have this by itself in /sbin/init.d, with a link from /sbin/rc3.d
pointing to it. It isn't very elegant if you ask me, but then again, I
haven't had any problems with it here.
jonathan
+++ Jonathan Rozes, jrozes@musketeers.tufts.edu, jrozes@cs.tufts.edu
+++ http://www.tufts.edu/~jrozes/
+++ Mind Over Liver: The liver probably contains 100 million cells, but
1,000 livers do not add up to a rich inner life. <GDF:SA 09/92>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rc3.d question: Anyone using lmgrd on OSF1?
1994-10-04 13:41 ` Jonathan Rozes
@ 1994-10-04 14:30 ` Steve Rosen
1994-10-05 5:36 ` Andy Jacobson
0 siblings, 1 reply; 5+ messages in thread
From: Steve Rosen @ 1994-10-04 14:30 UTC (permalink / raw)
In article <36rm2p$q4t@Emerald.tufts.edu>, jrozes@musketeers.tufts.edu (Jonathan Rozes) writes:
|>In article c75@news.mic.ucla.edu, afj@DrMemory.nuc.ucla.edu (Andy Jacobson) writes:
|>>
|>
|>We use several packages that implement FlexLM. My lmgrd comes from LSF and
|>starts roughly like this:
|>
|>$LSF_SERVERDIR/lmgrd \
|> -c /usr/lsf/etc/license.dat | sh -c \
|> 'while read line; do echo "$line" >> /var/adm/flexlm.log ; done ' \
|> 2>&1 &
|>
|>I have this by itself in /sbin/init.d, with a link from /sbin/rc3.d
|>pointing to it. It isn't very elegant if you ask me, but then again, I
|>haven't had any problems with it here.
|>
We have several things which don't startup right at system boot via the rc?.d
files. Sybase SQL server, Z-Mails license manager and flexlm to name a few.
The way I finally fixed it was to put a 'nohup' at the beginning of the command.
This came as a fix from Sybase. This fixed all of them and was the cleanest way
to fix the problem. Apparently the program/daemon is getting a signal that it
can't handle and it quits.
--
Steve Rosen Fox Chase Cancer Center
SM_Rosen@fccc.edu 7701 Burholme Avenue
(215) 728-3665 Philadelphia, PA 19111
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rc3.d question: Anyone using lmgrd on OSF1?
1994-10-04 14:30 ` Steve Rosen
@ 1994-10-05 5:36 ` Andy Jacobson
0 siblings, 0 replies; 5+ messages in thread
From: Andy Jacobson @ 1994-10-05 5:36 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rc3.d question: Anyone using lmgrd on OSF1?
1994-10-04 6:48 rc3.d question: Anyone using lmgrd on OSF1? Andy Jacobson
1994-10-04 13:41 ` Jonathan Rozes
@ 1994-10-05 15:18 ` Malcolm Beattie
1 sibling, 0 replies; 5+ messages in thread
From: Malcolm Beattie @ 1994-10-05 15:18 UTC (permalink / raw)
In article <36qtrt$c75@news.mic.ucla.edu>,
Andy Jacobson <afj@DrMemory.nuc.ucla.edu> wrote:
>
>Riddle me this: We have AVS here on a Dec Alpha, which uses Flexlm
>license manager. (This is not the DEC license manager), anyway, to
>get the lmgrd daemon to startup at boot, we put the command in /sbin/rc3.d
>at the end, as something like S96lmgrdstart. In the file we put the
>command "{path}/lmgrd -c {path}/license.file" followed by an "&" to keep
>the boot going. No dice. No errors messages. Changing the command to
>"sh {command} &" did nothing for us either. We finally gave up and
>hardwired it into the end of rc3 itself with no &, whereapon it works, and
>xdm comes up. This is not ideal as it still has the console, but it doesn't
>seem to want to do anything when started in the background. I never
>encounter this problem with any other version of unix and rc files. When
>started on the command line by root, lmgrd runs fine in the background.
>Any ideas?
>Thanks,
We use the following for /sbin/localinit.d/flexlm with the usual symlinks
from the rc[23].d directories to stop/start it:
------------------------------ cut here ------------------------------
#! /bin/sh
#
# turn on/off the Flex Licence Manager
#
RCMGR=/usr/sbin/rcmgr
LMGRD_PATH=`$RCMGR get LMGRD_PATH`
[ "$LMGRD_PATH" = "" ] && exit
LM_LICENSE_FILE=`$RCMGR get LM_LICENSE_FILE`
[ "$LM_LICENSE_FILE" = "" ] && exit
case "$1" in
'start')
# start flexlm
#
echo Starting lmgrd
(${LMGRD_PATH}/lmgrd -c ${LM_LICENSE_FILE} \
-l /var/adm/lmgrd.log -2 -p &) &
;;
'stop')
# stop flexlm
#
${LMGRD_PATH}/lmdown -c ${LM_LICENSE_FILE} -q &
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
------------------------------ cut here ------------------------------
Then just make sure you do
# rcmgr set LMGRD_PATH /usr/local/flexlm/licenses
# rcmgr set LM_LICENSE_FILE /usr/local/flexlm/licenses/license.dat
or the equivalent for your directory structure.
--Malcolm
--
Malcolm Beattie <mbeattie@sable.ox.ac.uk> (note new address)
Oxford University Computing Services
"Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1994-10-05 15:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1994-10-05 15:18 ` Malcolm Beattie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox