Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2016 16:08:52 +0200
From:      Bertram Scharpf <lists@bertram-scharpf.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: Stupid question regarding reboot and poweroff
Message-ID:  <20160918140852.GA65211@becker.bs.l>
In-Reply-To: <20160918131403.49fd438e@gumby.homeunix.com>
References:  <20160918090323.GA69189@e733> <20160918102949.GA90101@becker.bs.l> <20160918131403.49fd438e@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160918140852.GA65211>