<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,255)">Andrew, Bob,<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,255)">Thanks<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><img src="http://i923.photobucket.com/albums/ad79/candive/7d381ea0-1702-43dc-9185-0070677b1956_zpse48e93e2.png"><img src="http://i923.photobucket.com/albums/ad79/candive/PoweredbyLinuxEDITED_zps5856465c.jpg"><br></div></div></div>
<br><div class="gmail_quote">On 10 July 2016 at 15:08, Bob Jonkman <span dir="ltr"><<a href="mailto:bjonkman@sobac.com" target="_blank">bjonkman@sobac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
The invocation that's always worked for me is<br>
<br>
shutdown -h -P<br>
<br>
which halts and powers off.<br>
<br>
And then I discovered "poweroff" which is much easier to type and<br>
remember.<br>
<br>
But /sbin/poweroff just seems to be a soft link to /bin/systemctl<br>
There must be some command line detection in systemctl to determine<br>
how it was invoked, and then to take different actions depending on<br>
the command used.<br>
<br>
- --Bob.<br>
<br>
<br>
<br>
- --<br>
Bob Jonkman <<a href="mailto:bjonkman@sobac.com">bjonkman@sobac.com</a>> Phone: <a href="tel:%2B1-519-635-9413" value="+15196359413">+1-519-635-9413</a><br>
SOBAC Microcomputer Services <a href="http://sobac.com/sobac/" rel="noreferrer" target="_blank">http://sobac.com/sobac/</a><br>
Software --- Office & Business Automation --- Consulting<br>
GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA<br>
<span class=""><br>
<br>
<br>
<br>
On 2016-07-09 11:10 PM, Andrew Howlett wrote:<br>
> i checked the linux standard base core specification for the<br>
> shutdown command<br>
><br>
> actually it says on page 393 that for the shutdown -h (halt) option<br>
> "actions after halting are unspecified (e.g. power off)"<br>
><br>
><br>
>> On 9 Jul 2016, at 9:32 PM, LP <<a href="mailto:linuxpusher2@gmail.com">linuxpusher2@gmail.com</a>> wrote:<br>
>><br>
>> " it is systemd correctly implementing the commands"<br>
>><br>
>> What does that mean about the commands we have been using ? Is<br>
>> there a place to compare the commands ?<br>
>><br>
>><br>
>><br>
>><br>
</span><span class="">>> On 9 July 2016 at 16:31, LP <<a href="mailto:linuxpusher2@gmail.com">linuxpusher2@gmail.com</a><br>
</span>>> <mailto:<a href="mailto:linuxpusher2@gmail.com">linuxpusher2@gmail.com</a>>> wrote: I use to use "sudo<br>
<span class="">>> shutdown", now it gives the response "use shutdown --help". "sudo<br>
>> poweroff" , works. How many other commands that I thought I knew<br>
>> have changed I wonder.<br>
>><br>
>><br>
>><br>
>><br>
</span><span class="">>> On 9 July 2016 at 11:44, Andrew Howlett <<a href="mailto:andrew@howlett.net">andrew@howlett.net</a><br>
</span>>> <mailto:<a href="mailto:andrew@howlett.net">andrew@howlett.net</a>>> wrote: Hi guys<br>
<span class="">>><br>
>> I always use the halt command (sudo halt for ubuntu people) to<br>
>> turn off my box. Recently I noticed that halt stops the linux<br>
>> kernel but won't turn off the power. I thought maybe it's a ACPI<br>
>> problem. But no, actually it is systemd correctly implementing<br>
>> the commands. Halt closes the system but leaves it powered up.<br>
>> Poweroff or shutdown close and power off the system.<br>
>><br>
>> Sent from my phone.<br>
>><br>
>> _______________________________________________ Group mailing<br>
</span>>> list <a href="mailto:Group@bglug.ca">Group@bglug.ca</a> <mailto:<a href="mailto:Group@bglug.ca">Group@bglug.ca</a>><br>
>> <a href="http://bglug.ca/mailman/listinfo/group_bglug.ca" rel="noreferrer" target="_blank">http://bglug.ca/mailman/listinfo/group_bglug.ca</a><br>
<span class="">>> <<a href="http://bglug.ca/mailman/listinfo/group_bglug.ca" rel="noreferrer" target="_blank">http://bglug.ca/mailman/listinfo/group_bglug.ca</a>><br>
>><br>
>><br>
>><br>
>> _______________________________________________ Group mailing<br>
>> list <a href="mailto:Group@bglug.ca">Group@bglug.ca</a><br>
>> <a href="http://bglug.ca/mailman/listinfo/group_bglug.ca" rel="noreferrer" target="_blank">http://bglug.ca/mailman/listinfo/group_bglug.ca</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________ Group mailing list<br>
> <a href="mailto:Group@bglug.ca">Group@bglug.ca</a> <a href="http://bglug.ca/mailman/listinfo/group_bglug.ca" rel="noreferrer" target="_blank">http://bglug.ca/mailman/listinfo/group_bglug.ca</a><br>
><br>
</span>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
Comment: Ensure confidentiality, authenticity, non-repudiability<br>
<br>
iEYEARECAAYFAleCnScACgkQuRKJsNLM5eocygCeIW2BG8MXtN4AWfOoWuisefOc<br>
718An1Y95+HveB6U71WYx4H+827Ul78x<br>
=CQfg<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Group mailing list<br>
<a href="mailto:Group@bglug.ca">Group@bglug.ca</a><br>
<a href="http://bglug.ca/mailman/listinfo/group_bglug.ca" rel="noreferrer" target="_blank">http://bglug.ca/mailman/listinfo/group_bglug.ca</a><br>
</div></div></blockquote></div><br></div>