[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shutdown fails to power off host



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jan 17, 2017 at 11:35:28AM +0200, Johann Spies wrote:
> On 5 January 2017 at 09:09, Bob McGowan <ramjr0915@gmail.com> wrote:
> 
> > On 01/04/2017 10:59 PM, Bob McGowan wrote:
> > > I have done a search of the debian-user archive, using the same text as
> > > the subject, and found several references to emails with similar
> > > problems.  However, no exact solution was proposed.
> > >
> > > And this actually only happens on one of the two systems I have Debian
> > > installed on.
> > >
> > > I'm using testing (stretch).
> > >
> > > When I shutdown my desktop system, the screen displays messages from
> > > systemd (I presume), the last of which is "Reached target Shutdown".
> > >
> >
> 
> I get that when I use 'sudo halt'
> 
> When I use 'sudo halt -p'  it powers off.

"halt" is "shutdown" -- at least from where you are shooting. From halt's
man page:

     If halt or reboot is called when the system is not in runlevel
     0 or 6, in other words  when  it's  running  normally, shutdown
     will be invoked instead (with the -h or -r flag). For more info
     see the shutdown(8) manpage.

> So I would suggest you look at the underlying command on the button of the
> computer which do not power off and change the command.
> 
> Look at 'man shutdown'  for the options when you use 'shutdown'  in stead
> of 'halt'.

I agree, it should be in the options. That said, one of the systems I take
care of *sometimes* ends up in this state (i.e. "Reached target ..."), but
most of the time actually powers off.

Since it's a desktop I told the users that it's safe to power off the thing
when in this state and filed it under "unsolved hardware/init system quirks".

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlh98ooACgkQBcgs9XrR2kYHnwCdEUocDUqU6+ZCEKaVwVnhFRp0
yFwAn2t/TFQNikQsV+Y+79RWUWXr7Xp0
=7fMt
-----END PGP SIGNATURE-----


Reply to: