From owner-freebsd-questions Fri Sep 27 8: 9: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DB2737B401 for ; Fri, 27 Sep 2002 08:09:08 -0700 (PDT) Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E10E43E77 for ; Fri, 27 Sep 2002 08:09:07 -0700 (PDT) (envelope-from Petri.Riihikallio@Metis.fi) Received: from [192.168.0.2] ([212.90.71.47]) by posti.pp.htv.fi (8.11.1/8.11.1) with ESMTP id g8RF8sU23976; Fri, 27 Sep 2002 18:08:54 +0300 (EETDST) Mime-Version: 1.0 X-Sender: metis@pop.clinet.fi Message-Id: In-Reply-To: <87elbf1r7d.fsf@pooh.int> References: <87elbf1r7d.fsf@pooh.int> Date: Fri, 27 Sep 2002 18:08:52 +0300 To: Kirk Strauser , questions@FreeBSD.ORG From: Petri Riihikallio Subject: Re: How to shut down cleanly by killing power Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >I don't *think* that any of those daemons would be harmed by unmounting the >drives. After all, you can 'kill -9' them without any permanent bad >effects. kern_shutdown.c kills all processes with signals, flushes and syncs disks etc. It just seems silly to try to duplicate a kernel function with a shell script. Reinventing the wheel with inferior tools, isn't it? >I would think so. Other people have mentioned the 'shutdown -p' command; >does it do what you need? No. It just powers down the system. You need a power-cycle to activate BIOS autoboot. If the UPS is still supplying its last drops of power when the AC power returns, there won't be any power-cycle and therefore no autoboot either. -- Cheers, Petri Metis / Petri Riihikallio GSM: +358 400 505 939 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message