Path: utzoo!censor!becker!hybrid!scifi!bywater!uunet!bria!mike Newsgroups: comp.unix.questions Subject: Re: Running init not from console? Message-ID: <415@bria> Date: 3 Feb 91 01:05:20 GMT References: <1991Feb1.071518.6219@apt.bungi.com> Reply-To: uunet!bria!mike (Michael Stefanik) Distribution: usa Organization: Briareus Corporation, Los Angeles, CA Lines: 23 In an article, apt.bungi.com!brian (Brian Litzinger) writes: >I've written a daemon called 'pwatchd' which does just this when >it is sure the power is out. However, 'init' just says: > > init must be run from the console > >So what do I have to do to get init to do what I want rather >than what it thinks is best? You change runlevel by sending an appropriate signal to the init process, not by invoking another one. The "appropriate" signal can vary from system to system, so you'll need to check out your manual pages on INIT to proceed along this path. However, why not simply do something like this: sync; sleep 2; /etc/haltsys Some may argue that it's crude, but I rather like it. -- Michael Stefanik | Opinions stated are not even my own. Systems Engineer, Briareus Corporation | UUCP: ...!uunet!bria!mike ------------------------------------------------------------------------------- technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly found to be saying things like "Well, it works on my DOS machine ..."