From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c495d349a299fd95 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-24 11:53:11 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!swrinde!news.uh.edu!uuneo.neosoft.com!nmtigw!peter From: peter@nmti.com (Peter da Silva) Subject: Re: Does 'shutdown' really shutdown? Message-ID: Sender: peter@nmti.com (peter da silva) Organization: Network/development platform support, NMTI References: <2ubec7Ebqk@uni-erlangen.de> Date: Fri, 24 Jun 1994 16:58:48 GMT In article , Eric Werme wrote: > I'm not completely certain how the shutdown stuff really works, but > "shutdown -r" runs reboot *after* running rc0.d/K*. I hate like hell to contradict you, since you're at DEC, but I think you're wrong. > I don't know if rc2.d/K* is checked. I missed that he put the shutdown script in rc2.d. You're right that it's the rc0.d directory that /sbin/rc0 looks at. The K scripts in rc2.d are used when going from run level 3 to run level 2 or lower. *however*, we've had problems in the past where shutdown -r didn't properly run rc0. In addition, examining shutdown with "strings" shows that it's calling "/sbin/reboot" directly. And, as I've mentioned, there's no code in /sbin/rc0 to call reboot. (It also shows an amazing amount of stuff statically linked in the executable, including prompts from programs like "passwd". What gives?) -- Peter da Silva `-_-' Network Management Technology Incorporated 'U` 1601 Industrial Blvd. Sugar Land, TX 77478 USA +1 713 274 5180 "Hast Du heute schon Deinen Wolf umarmt?"