home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / bit / listserv / nextl / 851 < prev    next >
Encoding:
Text File  |  1992-12-25  |  1.8 KB  |  62 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!NETCOM.COM!ANTIGONE!MROSS
  3. Message-ID: <9212251039.AA00321@antigone.com>
  4. Newsgroups: bit.listserv.next-l
  5. Date:         Fri, 25 Dec 1992 02:39:25 -0800
  6. Reply-To:     mross@antigone.com
  7. Sender:       NeXT Computer List <NEXT-L@BROWNVM.BITNET>
  8. From:         Michael Ross <antigone!mross@NETCOM.COM>
  9. Subject:      Modifying rc.local
  10. Lines: 50
  11.  
  12. I'm really confused.
  13.  
  14. I'm trying to get a program to execute when I turn the NeXT on. This
  15. program, 'start', spawns a daemon 'serverd' and must be run by the
  16. user 'server'. I have added a line to /etc/rc.local so that it looks
  17. like this:
  18.  
  19. #####################################
  20. # Read in configuration information
  21. . /etc/hostconfig
  22.  
  23. (echo -n 'local daemons:')
  24. >/dev/console
  25. #
  26. # Run your own commands here
  27. #
  28. su server -c '/usr/server/start -cr >/dev/console' && (echo -n '
  29. listserv') >/dev/console
  30. #
  31. #
  32. (echo '.')
  33. >/dev/console
  34. ####################################
  35.  
  36. During the boot process, the console echoes 'local daemons:', the
  37. output of the start program,  and the final '.' properly. However '
  38. listserv' never appears, meaning the previous su... was unsuccessful.
  39. And, indeed, the daemon spawned by 'start' is no longer is the list
  40. of processes running (seen with 'ps -ax') when I first login.
  41.  
  42. The frustrating thing is that the su.... line works fine when
  43. executed from a Terminal shell as root!
  44.  
  45.  
  46. Can anyone tell me why this process is dying at startup and what can
  47. I do to the rc.local file to make it stay? It looks like  either when
  48. the 'su' subshell exits, it kills all processes it has spawned, or su
  49. is returning an exit error code, but not 'saying' anything to the
  50. console....
  51.  
  52. Thanks for any suggestions and.... MERRY CHRISTMAS!!!!
  53.  
  54. Michael
  55.  
  56. ---
  57. Michael Ross
  58. Antigone Press, San Francisco, California
  59. e-mail: mross@antigone.com
  60. FAX: 1-415-431-3650
  61. ---
  62.