home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14619 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1019 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!cad4.lbl.gov!mario
  2. From: mario@cad4.lbl.gov (mario aranha)
  3. Newsgroups: comp.sys.hp
  4. Subject: /etc/rc
  5. Followup-To: comp.sys.hp
  6. Date: 7 Jan 1993 21:59:32 GMT
  7. Organization: Lawrence Berkeley Laboratory
  8. Lines: 27
  9. Sender: mario@cad4.lbl.gov
  10. Distribution: world
  11. Message-ID: <28267@dog.ee.lbl.gov>
  12. NNTP-Posting-Host: 128.3.252.177
  13.  
  14. I've been trying to start some software license
  15. daemons automatically at boot on a 700/8.07 by
  16. calling them in the localrc() function in /etc/rc.
  17. Localrc() does get called by /etc/rc at boot but
  18. nothing within localrc() seems to be executed when
  19. the system is rebooted. Here's the relevant code from
  20. /etc/rc:
  21.  
  22. #! /bin/sh
  23. blah, blah, ...
  24.  
  25. localrc()
  26. {
  27. /usr/local/flexlm/bin/lmgrd  > /usr/local/flexlm/licenses/license.log &
  28. }
  29.  
  30. blh, blah, ...
  31.  
  32. if [ ! -f /etc/rcflag ]         # Boot time invocation only
  33. then
  34.  
  35.    blah, blah, ...
  36.  
  37.    localrc
  38. fi
  39.  
  40. blah, blah, ...
  41.