home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.sysadmin
- Path: sparky!uunet!spool.mu.edu!agate!iat.holonet.net!mross
- From: mross@iat.holonet.net (Michael Ross)
- Subject: rc.local modification?
- Message-ID: <Bzwwt6.C0D@iat.holonet.net>
- Organization: HoloNet National Internet Access BBS: 510-704-1058/modem
- Date: Sun, 27 Dec 1992 09:53:28 GMT
- Lines: 51
-
- I'm really confused.
-
- I'm trying to get a program to execute when I turn the NeXT on. This
- program, 'start', spawns a daemon 'serverd' and must be run by the
- user 'server'. I have added a line to /etc/rc.local so that it looks
- like this:
-
- #####################################
- # Read in configuration information
- . /etc/hostconfig
-
- (echo -n 'local daemons:')
- >/dev/console
- #
- # Run your own commands here
- #
- su server -c '/usr/server/start -cr >/dev/console' && (echo -n '
- listserv') >/dev/console
- #
- #
- (echo '.')
- >/dev/console
- ####################################
-
- During the boot process, the console echoes 'local daemons:', the
- output of the start program, and the final '.' properly. However '
- listserv' never appears, meaning the previous su... was unsuccessful.
- And, indeed, the daemon spawned by 'start' is no longer is the list
- of processes running (seen with 'ps -ax') when I first login.
-
- The frustrating thing is that the su.... line works fine when
- executed from a Terminal shell as root!
-
-
- Can anyone tell me why this process is dying at startup and what can
- I do to the rc.local file to make it stay? It looks like either when
- the 'su' subshell exits, it kills all processes it has spawned, or su
- is returning an exit error code, but not 'saying' anything to the
- console....
-
- Thanks for any suggestions and.... MERRY CHRISTMAS!!!!
-
- Michael
-
- ---
- Michael Ross
- Antigone Press, San Francisco, California
- e-mail: mross@antigone.com
- FAX: 1-415-431-3650
- ---
-
-