[Bglug] Halt and poweroff
Bob Jonkman
bjonkman at sobac.com
Sun Jul 10 15:08:29 EDT 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The invocation that's always worked for me is
shutdown -h -P
which halts and powers off.
And then I discovered "poweroff" which is much easier to type and
remember.
But /sbin/poweroff just seems to be a soft link to /bin/systemctl
There must be some command line detection in systemctl to determine
how it was invoked, and then to take different actions depending on
the command used.
- --Bob.
- --
Bob Jonkman <bjonkman at sobac.com> Phone: +1-519-635-9413
SOBAC Microcomputer Services http://sobac.com/sobac/
Software --- Office & Business Automation --- Consulting
GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA
On 2016-07-09 11:10 PM, Andrew Howlett wrote:
> i checked the linux standard base core specification for the
> shutdown command
>
> actually it says on page 393 that for the shutdown -h (halt) option
> "actions after halting are unspecified (e.g. power off)"
>
>
>> On 9 Jul 2016, at 9:32 PM, LP <linuxpusher2 at gmail.com> wrote:
>>
>> " it is systemd correctly implementing the commands"
>>
>> What does that mean about the commands we have been using ? Is
>> there a place to compare the commands ?
>>
>>
>>
>>
>> On 9 July 2016 at 16:31, LP <linuxpusher2 at gmail.com
>> <mailto:linuxpusher2 at gmail.com>> wrote: I use to use "sudo
>> shutdown", now it gives the response "use shutdown --help". "sudo
>> poweroff" , works. How many other commands that I thought I knew
>> have changed I wonder.
>>
>>
>>
>>
>> On 9 July 2016 at 11:44, Andrew Howlett <andrew at howlett.net
>> <mailto:andrew at howlett.net>> wrote: Hi guys
>>
>> I always use the halt command (sudo halt for ubuntu people) to
>> turn off my box. Recently I noticed that halt stops the linux
>> kernel but won't turn off the power. I thought maybe it's a ACPI
>> problem. But no, actually it is systemd correctly implementing
>> the commands. Halt closes the system but leaves it powered up.
>> Poweroff or shutdown close and power off the system.
>>
>> Sent from my phone.
>>
>> _______________________________________________ Group mailing
>> list Group at bglug.ca <mailto:Group at bglug.ca>
>> http://bglug.ca/mailman/listinfo/group_bglug.ca
>> <http://bglug.ca/mailman/listinfo/group_bglug.ca>
>>
>>
>>
>> _______________________________________________ Group mailing
>> list Group at bglug.ca
>> http://bglug.ca/mailman/listinfo/group_bglug.ca
>
>
>
>
> _______________________________________________ Group mailing list
> Group at bglug.ca http://bglug.ca/mailman/listinfo/group_bglug.ca
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Ensure confidentiality, authenticity, non-repudiability
iEYEARECAAYFAleCnScACgkQuRKJsNLM5eocygCeIW2BG8MXtN4AWfOoWuisefOc
718An1Y95+HveB6U71WYx4H+827Ul78x
=CQfg
-----END PGP SIGNATURE-----
More information about the Group
mailing list