From owner-freebsd-questions@freebsd.org Sun Sep 18 10:47:38 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BC37BD7C20 for ; Sun, 18 Sep 2016 10:47:38 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "fileserver.home.qeng-ho.org", Issuer "fileserver.home.qeng-ho.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BCFF4D77 for ; Sun, 18 Sep 2016 10:47:37 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.home.qeng-ho.org (8.15.2/8.15.2) with ESMTP id u8IAJf8n095583; Sun, 18 Sep 2016 11:19:41 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Subject: Re: Stupid question regarding reboot and poweroff To: Aleksander Alekseev , FreeBSD Questions References: <20160918090323.GA69189@e733> From: Arthur Chance Message-ID: <1945dff3-ac29-f07d-0a66-85cec230f45e@qeng-ho.org> Date: Sun, 18 Sep 2016 11:19:41 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20160918090323.GA69189@e733> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 10:47:38 -0000 On 18/09/2016 10:03, Aleksander Alekseev wrote: > Hello. > > Is there any difference between executing `poweroff` and `shutdown -p > now` or executing `reboot` and `shutdown -r now` ? > man shutdown says Calling “poweroff” is equivalent to running: shutdown -p now and they're the same executable hard linked. reboot is the same executable as halt. They don't warn logged on users in the same way as shutdown does. man reboot says Normally, the shutdown(8) utility is used when the system needs to be halted or restarted, giving users advance warning of their impending doom and cleanly terminating specific programs. -- Schrödinger's cat had 18 half lives.