home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / aix / 13683 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!umn.edu!csus.edu!netcom.com!netcomsv!mbeckman!mbeckman
  2. From: mbeckman@mbeckman.mbeckman.com (Mel Beckman)
  3. Newsgroups: comp.unix.aix
  4. Subject: Autostarting jobs at boot?
  5. Date: Sat, 23 Jan 93 21:47:07 PST
  6. Organization: Beckman Software Engineering
  7. Message-ID: <01050810.oerar1@mbeckman.mbeckman.com>
  8. Reply-To: mbeckman@mbeckman.com
  9. Distribution: world
  10. X-Mailer: uAccess LITE - Macintosh Release: 1.5v5
  11. Lines: 47
  12.  
  13. We've developed a database server that runs as several background tasks
  14. and which fields client requests from another system over a network. Our
  15. server works fine, but now we're ready to package this as a product and
  16. I can't figure out how to properly get the thing to automatically start
  17. up at boot.
  18.  
  19. I'm currently appending a stanza to inittab:
  20.  
  21. USDAserver:2:once:/usr/usda/start@boot >/dev/console 2>/dev/console
  22.  
  23. and this works to get the thing started OK. But we need to put in some kind
  24. of delay during which a user could choose to cancel the thing. The start@boot
  25. script looks something like this:
  26.  
  27. echo "Do you want to cancel the USDA RISC server?"
  28. read answer
  29. if "answer" = y
  30.   then exit
  31. fi
  32. startUSDA1 &
  33. startUSDA2 &
  34. startUSDA3 &
  35.  
  36. Unfortunately, we can't seem to get any input back into the script -- it
  37. all goes to the shell (or getty) running at the console. 
  38.  
  39. There must be an easy way to do this. I though of writing a special killUSDA
  40. script that would look for the start@boot shell and kill it, but apparently
  41. init doesn't put the command line into the process table entry for inittab
  42. items, so I can't identify the process (it currently says "sh sh sh" in
  43. a ps-ef).
  44.  
  45. Perhaps I shouldn't even be starting this via inittab? Am I supposed to
  46. be registering this thing as an AIX subsystem somehow?
  47.  
  48. Thanks for the help!
  49.  
  50.   -mel
  51.  
  52. _____________________________________________________________________
  53. | Mel beckman                  |    Internet: mbeckman@mbeckman.com |
  54. | Beckman Software Engineering |  Compuserve: 75226,2257            |
  55. | 1201 Nilgai Place            |       Voice: 805/647-1641          |
  56. | Ventura, CA 93003            |         Fax: 805/647-3125          |
  57. |______________________________|____________________________________|
  58.  "Internet is big.  Really Big.  It gives the idea of
  59.   infinity much better than infinity itself." 
  60.    (with apologies to Douglas Adams)
  61.