Path: utzoo!attcan!uunet!husc6!mailrus!purdue!decwrl!pyramid!prls!mips!dce
From: dce@mips.COM (David Elliott)
Newsgroups: comp.unix.questions
Subject: init states in SVR3
Message-ID: <2475@quacky.mips.COM>
Date: 29 Jun 88 16:56:01 GMT
Reply-To: dce@mips.COM (David Elliott)
Organization: MIPS Computer Systems, Sunnyvale, CA
Lines: 22


We've run into an interesting situation in SVR3 and SVR3.1 having to do
with changing run states.

It seems to me that changing from state X to state Y would require
running each of the files in /etc/rcX.d with the "stop" argument and
then running each of the files in /etc/rcY.d with the "start"
argument.

This doesn't happen.  The result is that when someone changes from
state 2 to state 1 and then back to 2, there are some daemons, like
cron, started again.

Something I noticed is that /etc/rc1.d will unmount all filesystems and
kill all running processes, resulting in what sounds like single-user
mode to me.  Then again, inittab doesn't reference /etc/rc.1 at all.

Could someone out there explain what should really happen when the run
state is changed?

-- 
David Elliott		dce@mips.com  or  {ames,prls,pyramid,decwrl}!mips!dce