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 11:43:27 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swiss.ans.net!news.dfn.de!Germany.EU.net!EU.net!uknet!comlab.ox.ac.uk!sable.ox.ac.uk!mbeattie From: mbeattie@sable.ox.ac.uk (Malcolm Beattie) Subject: Re: rc3.d question: Anyone using lmgrd on OSF1? Message-ID: <1994Oct5.161826.25355@inca.comlab.ox.ac.uk> Organization: Oxford University Computing Service, 13 Banbury Rd, Oxford, UK References: <36qtrt$c75@news.mic.ucla.edu> Date: Wed, 5 Oct 94 16:18:25 BST In article <36qtrt$c75@news.mic.ucla.edu>, Andy Jacobson 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 (note new address) Oxford University Computing Services "Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee