Re: reboot/halt/shutdown does nothing
- To: debian-user@lists.debian.org
- Subject: Re: reboot/halt/shutdown does nothing
- From: "Karl E. Jorgensen" <karl@jorgensen.org.uk>
- Date: Mon, 17 Feb 2014 20:04:12 +0000
- Message-id: <20140217200412.GC9715@hawking>
- In-reply-to: <alpine.DEB.2.10.1402171629080.2666@lyonesse>
- References: <alpine.DEB.2.10.1402171629080.2666@lyonesse>
Hi
On Mon, Feb 17, 2014 at 04:29:17PM +0800, Zhang Weiwu wrote:
> Using Debian 6.0. reboot/halt/shutdown does nothing except
> announcing the shutdown and halt the ssh session that issued the
> command.
>
> But beyond that it really did nothing. Among the things it did not do are:
>
> - no process are killed or terminated. None of mysql, apache, cron daemons
> are shut down, and the website it serves keeps online just fine.
> - although the ssh session whence the command issued is halted, I can still
> login with a new ssh session.
> - last(1) and uptime(1) doesn't remember having any shutdown.
>
> The only thing I can find that prooves I issued shutdown is a
> one-line messages like this in /var/log/messages:
> Feb 17 07:55:30 localhost shutdown[11212]: shutting down for system halt
>
> Or this:
> Feb 17 07:54:24 localhost shutdown[11084]: shutting down for system reboot
>
> The problem is reproducible: if I unplug the power, and start again,
> it predictablly fail to shutdown / reboot.
So init knows that you want to shut down/reboot..
My guess is that one of the "early" init scripts are hanging.
To verify that this is the case, you could try to execute each of the
scripts in /etc/rc6.d/* scripts in asciibetical sequence. I suspect
something like this would do the trick:
for file in /etc/rc6.d/K*; do echo == Running $file ...; $file stop; done
If my suspicion is correct, then one of the scripts will hang...
Hope this helps
--
Karl E. Jorgensen
Reply to: