home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / sysadmin / 7347 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.9 KB  |  50 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!atlantis!splunge!royce
  3. From: royce@splunge.uucp (Royce Howland)
  4. Subject: Re: rc.local?
  5. Message-ID: <1993Jan8.145805.18068@splunge.uucp>
  6. Organization: Ashley, Howland & Wood
  7. References: <1993Jan7.213419.7488@ornl.gov>
  8. Date: Fri, 8 Jan 1993 14:58:05 GMT
  9. Lines: 39
  10.  
  11. woo@ornl.gov (John W. Wooten) writes:
  12.  
  13. >I have a file rc.local in which I start my gopher daemon
  14. >and a supersrv daemon.  Under 2.1 this worked fine.  Now I find that  
  15. >under 3.0, the script starts and prints out the
  16. >Starting local daemons:
  17. >and then the final .
  18.  
  19. >In between are the parts to start the two daemons and they don't get  
  20. >started!
  21. >If as su, I type sh /etc/rc.local (exactly what is in the rc script),
  22. >then the rc.local starts both daemons fine.
  23.  
  24. >Any ideas on what I'm doing wrong?
  25. >- - - - - - - - -
  26.  
  27. It's possible that your rc.local depends on some environment variables
  28. or other conditions being in place when it runs, and that such conditions
  29. are in place when you sh /etc/rc.local, and were in place under NS2.x,
  30. but are no longer in place under NS3.0.  Think about things like the PATH
  31. and so on.  Think about what else may be set when you're logged in as
  32. root (via su) that may not be set when the machine is booting.
  33.  
  34. Put some diagnostic messages in rc.local, so you can at least see what's
  35. happening.  If rc.local is doing things like
  36.     if [ foo ]; then
  37.         blah, blah, blah
  38.     fi
  39. then modify this to be
  40.     if [ foo ]; then
  41.         blah, blah, blah
  42.     else
  43.         (echo Condition foo failed...) >/dev/console
  44.     fi
  45. -- 
  46. Royce Howland, DKW Systems Corp.   |  "And since OS/2 2.0 is a 32-bit
  47.        Everything is IMHO          |   operating system, programs are easier
  48. royce@splunge.uucp  (NeXTMail OK)  |   to write and run faster, too."
  49. or kakwa!atlantis!splunge!royce    |  ad for OS/2 2.0
  50.