🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.sysadmin
1 messages
1 total messages Started by Michael Ross Sun, 27 Dec 1992 09:53
rc.local modification?
#2017
Author: Michael Ross
Date: Sun, 27 Dec 1992 09:53
50 lines
1863 bytes
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
---
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads