From owner-freebsd-questions@freebsd.org Sun Sep 18 14:09:02 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 61092BDFE15 for ; Sun, 18 Sep 2016 14:09:02 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B886CE56 for ; Sun, 18 Sep 2016 14:09:00 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.8.239]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0MYGYa-1bYVj30VWq-00UvyV for ; Sun, 18 Sep 2016 16:08:53 +0200 Received: from bsch by becker.bs.l with local (Exim 4.87 (FreeBSD)) (envelope-from ) id 1blcm4-000E4f-8p for freebsd-questions@freebsd.org; Sun, 18 Sep 2016 16:08:52 +0200 Date: Sun, 18 Sep 2016 16:08:52 +0200 From: Bertram Scharpf To: freebsd-questions@freebsd.org Subject: Re: Stupid question regarding reboot and poweroff Message-ID: <20160918140852.GA65211@becker.bs.l> Mail-Followup-To: freebsd-questions@freebsd.org References: <20160918090323.GA69189@e733> <20160918102949.GA90101@becker.bs.l> <20160918131403.49fd438e@gumby.homeunix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160918131403.49fd438e@gumby.homeunix.com> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: Bertram Scharpf X-Provags-ID: V03:K0:/xQWvbkOinEioq0Hl2WQSUwMrxh0REuM73c5iopgk3wz/y61Vvp 6DfHK7ABrni/dmvHlrBrMGVdHSusuW2wGD/lOegW2w/jcr3TjZ8WOrzupCVBS4bw6TTNHiE 2EeSGDIgAlmr8OK3Tnf6oG8oeNTCDREmvQPldHHW/sf9i3nE5j4QnziW4n0Uo6FnnW9LW1B RUsVlf5Hx7MZkhfOaQ7GA== X-UI-Out-Filterresults: notjunk:1;V01:K0:x7JcQ2QruLg=:5NxneSc8yun6Z8xPOFjZm6 gmEuSqSgAZ2uDUzj2i9zpX8ochxWjT+d0NmhHJF/tUigBer3lkUt/sp3UMcr4x8oqJW1yTQmN eIfPdEqg0tFu8JozHAeHiPNqD7+ChfxJV1x3793mfVPTlTLAfxT3aMGHyDlEyqPyLeLgwjydg X2EfxpNvpOqJ1MGkwvDNP+2punSUN8KdP60XM42CxIU4hC+jmIjTJ8lQ/GChJ1coGljWobNlg gHjKegCP6/iKEx2nWR4ZegQzmTs/S5dkAFPPtzP+64Y/RdsH87NsbuM1tAjEAQxWt2V7fVP1z /oSNVksA9EeMaNlzPNHLmxnILciNEZ5gKERP9CmWvjNZZO7nE3RkOVZ/wXBIvH001No9O7Vnk L6UkW0lCZDjfhuJDqjFHR3p1FsBk9EiKkG0MAKCur69oNaPI7JfWPyS07ekkq5Bg05fftqVo7 qqZKmBH6v7KEUEHoiwrL8y5+m8BxiCRO0SUAun56IB4tAIGgXtAF4SkUZWqW+hsnva6Lg9/Rn SaNZu/umnNaXvdfFq84TLK5EsikBvF0IUr2bS3ppC2b86YxGZkIDh9HqpwzZOpNVbyhiie774 YXpA5nqzlFor6s01MdYQ1WMSCWB2Al2zEe9emZbAl223+c/AKW9pm23KhtzvSIscnBpXEweVv obXKcd6rHWfMbwLA77XYlCHbAtCqrh5/+hJEudZQuTq4Xj8h4yagwD3O6v3eCc37Mb9U= 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 14:09:02 -0000 On Sunday, 18. Sep 2016, 13:14:03 +0100, RW via freebsd-questions wrote: > On Sun, 18 Sep 2016 12:29:49 +0200 > Bertram Scharpf wrote: > > > On Sunday, 18. Sep 2016, 12:03:23 +0300, Aleksander Alekseev wrote: > > > Is there any difference between executing `poweroff` and `shutdown > > > -p now` or executing `reboot` and `shutdown -r now` ? > > > > `poweroff' is a hard link to `shutdown'. > > In general you can't infer from that that they behave the same. It's > not uncommon that similar utilities are implemented in the same binary, > and then behave differently according to how they are invoked, e.g. > less and more. As can be seen in /usr/src/sbin/shutdown/shutdown.c, line 130. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de