Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #194214 > unrolled thread

How to shut down

Started bysolitone <solitone@mail.com>
First post2018-03-27 15:40 +0200
Last post2018-04-01 14:50 +0200
Articles 8 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  How to shut down solitone <solitone@mail.com> - 2018-03-27 15:40 +0200
    Re: How to shut down Dan Purgert <dan@djph.net> - 2018-03-27 16:40 +0200
    Re: How to shut down Siard <shiems146@kpnplanet.nl> - 2018-03-27 18:20 +0200
      Re: How to shut down Curt <curty@free.fr> - 2018-03-27 18:50 +0200
        Re: How to shut down Felix Miata <mrmazda@earthlink.net> - 2018-03-27 19:30 +0200
    Re: How to shut down Don Armstrong <don@debian.org> - 2018-03-27 19:10 +0200
      Re: How to shut down solitone <solitone@mail.com> - 2018-04-01 07:40 +0200
        Re: How to shut down Siard <shiems146@kpnplanet.nl> - 2018-04-01 14:50 +0200

#194214 — How to shut down

Fromsolitone <solitone@mail.com>
Date2018-03-27 15:40 +0200
SubjectHow to shut down
Message-ID<vxWZr-4MA-3@gated-at.bofh.it>
What's the current best practice to shut down the system? In the old
days I used to:
# shutdown - h now

but then I read of the systemd way:
# systemctl poweroff

However, with the latter the system does shut down, although the machine
does not power off (I have to physically press the off button). While
with the former it actually powers off.

[toc] | [next] | [standalone]


#194217

FromDan Purgert <dan@djph.net>
Date2018-03-27 16:40 +0200
Message-ID<vxXVv-5lt-5@gated-at.bofh.it>
In reply to#194214
solitone wrote:
> What's the current best practice to shut down the system? In the old
> days I used to:
> # shutdown - h now
>
> but then I read of the systemd way:
> # systemctl poweroff
>
> However, with the latter the system does shut down, although the machine
> does not power off (I have to physically press the off button). While
> with the former it actually powers off.

I'd go with "shutdown" being the best practice, since it does what you
want it to do.

If you *really* want to do things the "systemd way(tm)", maybe the
manpage will have something about actually halting / really shutting off
the power. I wouldn't know though, systemd is far too invasive for my
tastes; and I don't need all the "whizbang features" they claim will
help me out.

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281

[toc] | [prev] | [next] | [standalone]


#194219

FromSiard <shiems146@kpnplanet.nl>
Date2018-03-27 18:20 +0200
Message-ID<vxZuh-6zq-1@gated-at.bofh.it>
In reply to#194214
solitone wrote:
> # systemctl poweroff
> 
> However, with the latter the system does shut down, although the
> machine does not power off (I have to physically press the off
> button).

Here, 'systemctl poweroff', as user or as root, does power off the
machine, both in stable and testing. So the question is why it does not
work in your case.

[toc] | [prev] | [next] | [standalone]


#194220

FromCurt <curty@free.fr>
Date2018-03-27 18:50 +0200
Message-ID<vxZXj-6RL-1@gated-at.bofh.it>
In reply to#194219
On 2018-03-27, Siard <shiems146@kpnplanet.nl> wrote:
> solitone wrote:
>> # systemctl poweroff
>> 
>> However, with the latter the system does shut down, although the
>> machine does not power off (I have to physically press the off
>> button).
>
> Here, 'systemctl poweroff', as user or as root, does power off the
> machine, both in stable and testing. So the question is why it does not
> work in your case.
>

That is the question. Yet I'm uncertain whether that question is amenable to
an answer.

I suffer from the same syndrome, no matter the method (shutdown -h now
and poweroff as root, systemctl poweroff as user and root).

The last few attempts with "systemctl poweroff" as root have powered the
machine off (one time as a regular ".homie" user that command produced a
"permission denied" message concerning, if memory serves--and it's
serving less and less as time goes by--journalctl).

It's periodic (well, periodic implies regularity and I've discovered
none). In all cases the shutdown is performed correctly, cleanly, but
sometimes the machine does not power off.

This is a chronic disease for which the only cure might be a bios
update (as I was informed by a kernel hacker here).


-- 
We are no longer the same, you wiser but not sadder, and I sadder but not
wiser, for wiser I could hardly become without grave personal inconvenience,
whereas sorrow is a thing you can keep adding to all your life long, is it not,
like a stamp or an egg collection, without feeling very much the worse for it,
is it not. --Samuel Beckett

[toc] | [prev] | [next] | [standalone]


#194222

FromFelix Miata <mrmazda@earthlink.net>
Date2018-03-27 19:30 +0200
Message-ID<vy0A1-7jQ-1@gated-at.bofh.it>
In reply to#194220
Curt composed on 2018-03-27 16:42 (UTC):

> Siard wrote:

>> solitone wrote:

>>> # systemctl poweroff

>>> However, with the latter the system does shut down, although the
>>> machine does not power off (I have to physically press the off
>>> button).

>> Here, 'systemctl poweroff', as user or as root, does power off the
>> machine, both in stable and testing. So the question is why it does not
>> work in your case.

> That is the question. Yet I'm uncertain whether that question is amenable to
> an answer.

> I suffer from the same syndrome, no matter the method (shutdown -h now
> and poweroff as root, systemctl poweroff as user and root).

> This is a chronic disease for which the only cure might be a bios
> update (as I was informed by a kernel hacker here).

BIOS update solved same problem on a decade old HP desktop here last year.
-- 
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

[toc] | [prev] | [next] | [standalone]


#194221

FromDon Armstrong <don@debian.org>
Date2018-03-27 19:10 +0200
Message-ID<vy0gF-7dE-5@gated-at.bofh.it>
In reply to#194214
On Tue, 27 Mar 2018, solitone wrote:
> What's the current best practice to shut down the system? In the old
> days I used to:
> # shutdown - h now
> 
> but then I read of the systemd way:
> # systemctl poweroff
> 
> However, with the latter the system does shut down, although the
> machine does not power off (I have to physically press the off
> button). While with the former it actually powers off.

You can use either. `shutdown -h now` on a machine with systemd actually
invokes systemctl with the equivalent of systemctl poweroff[1].

If your machine isn't actually powering off, usually that indicates that
one or more units isn't finishing properly. The output of journalctl
will tell you what is going on in such a case.

1: https://github.com/systemd/systemd/blob/master/src/systemctl/systemctl.c#L7900
-- 
Don Armstrong                      https://www.donarmstrong.com

[C]haos is found in greatest abundance wherever order is being sought.
It always defeats order, because it is better organized.
 -- Terry Pratchett _Interesting Times_ p4

[toc] | [prev] | [next] | [standalone]


#194367

Fromsolitone <solitone@mail.com>
Date2018-04-01 07:40 +0200
Message-ID<vzDSF-71r-3@gated-at.bofh.it>
In reply to#194221
On 27/03/18 19:02, Don Armstrong wrote:
> You can use either. `shutdown -h now` on a machine with systemd actually
> invokes systemctl with the equivalent of systemctl poweroff

Yes, I've checked again and now 'systemctl poweroff' does power off the
machine. No idea on what changed.

[toc] | [prev] | [next] | [standalone]


#194371

FromSiard <shiems146@kpnplanet.nl>
Date2018-04-01 14:50 +0200
Message-ID<vzKAN-37P-7@gated-at.bofh.it>
In reply to#194367
solitone:
> Don Armstrong:
> > You can use either. `shutdown -h now` on a machine with systemd
> > actually invokes systemctl with the equivalent of systemctl poweroff
> 
> Yes, I've checked again and now 'systemctl poweroff' does power off
> the machine. No idea on what changed.

FYI:

By default, Ctrl-Alt-Del reboots the machine.
As has been pointed out once in this list (thanks to Michael Biebl),
you can have Ctrl-Alt-Del power off the machine by adding a link
/etc/systemd/system/ctrl-alt-del.target pointing to
/lib/systemd/system/poweroff.target.

# ln -s /lib/systemd/system/poweroff.target /etc/systemd/system/ctrl-alt-del.target

However: if you then keep Ctrl-Alt-Del pressed for a second, the
machine still reboots.
That way, you could use Ctrl-Alt-Del for both poweroff and reboot.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web