home *** CD-ROM | disk | FTP | other *** search
- 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
- From: mbeckman@mbeckman.mbeckman.com (Mel Beckman)
- Newsgroups: comp.unix.aix
- Subject: Autostarting jobs at boot?
- Date: Sat, 23 Jan 93 21:47:07 PST
- Organization: Beckman Software Engineering
- Message-ID: <01050810.oerar1@mbeckman.mbeckman.com>
- Reply-To: mbeckman@mbeckman.com
- Distribution: world
- X-Mailer: uAccess LITE - Macintosh Release: 1.5v5
- Lines: 47
-
- We've developed a database server that runs as several background tasks
- and which fields client requests from another system over a network. Our
- server works fine, but now we're ready to package this as a product and
- I can't figure out how to properly get the thing to automatically start
- up at boot.
-
- I'm currently appending a stanza to inittab:
-
- USDAserver:2:once:/usr/usda/start@boot >/dev/console 2>/dev/console
-
- and this works to get the thing started OK. But we need to put in some kind
- of delay during which a user could choose to cancel the thing. The start@boot
- script looks something like this:
-
- echo "Do you want to cancel the USDA RISC server?"
- read answer
- if "answer" = y
- then exit
- fi
- startUSDA1 &
- startUSDA2 &
- startUSDA3 &
-
- Unfortunately, we can't seem to get any input back into the script -- it
- all goes to the shell (or getty) running at the console.
-
- There must be an easy way to do this. I though of writing a special killUSDA
- script that would look for the start@boot shell and kill it, but apparently
- init doesn't put the command line into the process table entry for inittab
- items, so I can't identify the process (it currently says "sh sh sh" in
- a ps-ef).
-
- Perhaps I shouldn't even be starting this via inittab? Am I supposed to
- be registering this thing as an AIX subsystem somehow?
-
- Thanks for the help!
-
- -mel
-
- _____________________________________________________________________
- | Mel beckman | Internet: mbeckman@mbeckman.com |
- | Beckman Software Engineering | Compuserve: 75226,2257 |
- | 1201 Nilgai Place | Voice: 805/647-1641 |
- | Ventura, CA 93003 | Fax: 805/647-3125 |
- |______________________________|____________________________________|
- "Internet is big. Really Big. It gives the idea of
- infinity much better than infinity itself."
- (with apologies to Douglas Adams)
-