Xref: utzoo comp.unix.questions:30688 comp.unix.misc:1348 comp.unix.sysv386:7252 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!fciva!dag From: dag@fciva.FRANKCAP.COM (Daniel A. Graifer) Newsgroups: comp.unix.questions,comp.unix.misc,comp.unix.sysv386 Subject: Re: Current Run-Level: How can you tell? Keywords: init run level Message-ID: <599@fciva.FRANKCAP.COM> Date: 24 Apr 91 14:02:35 GMT References: <1991Apr23.024433.10460@srwic.UUCP> Reply-To: dag@fciva.UUCP (Daniel A. Graifer) Organization: Coastal Capital Funding Corp., McLean, VA Lines: 19 In article <1991Apr23.024433.10460@srwic.UUCP> sralston@srwic.UUCP (Steve Ralston) writes: >Sorry as I'm sure this is a FAQ or RTFM question, but, I've looked quite >a few places and can't find a way to tell what the current run level of >a Unix system is (i.e. "init" level). It may depend on your version of unix, but in my port of SysV 3.1.2 "who -r" reports various things about init including the current run level. Many of the vendor supplied rc2.d init files use this to make sure certain things do/don't happen during transition from one state to another. I don't know how you would do it from 'c'. Dan -- Daniel A. Graifer Coastal Capital Funding Corp. Sr. Vice President, Financial Systems 7900 Westpark Dr. Suite A-130 (703)821-3244 McLean, VA 22102 uunet!fciva!dag fciva.FRANKCAP.COM!dag@uunet.uu.net