From: mbeattie@sable.ox.ac.uk (Malcolm Beattie)
Subject: Re: rc3.d question: Anyone using lmgrd on OSF1?
Date: Wed, 5 Oct 94 16:18:25 BST [thread overview]
Message-ID: <1994Oct5.161826.25355@inca.comlab.ox.ac.uk> (raw)
In-Reply-To: 36qtrt$c75@news.mic.ucla.edu
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
prev parent reply other threads:[~1994-10-05 15:18 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
1994-10-05 15:18 ` Malcolm Beattie [this message]
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