You are not logged in.

#1 2010-06-04 13:33:51

sprince09
Member
From: USA
Registered: 2010-05-27
Posts: 8

Shutdown command reboots computer

I seem to be having a strange problem. Whenever I issue a shutdown command, eg

#  shutdown now -h

my computer reboots instead of shutting down. I've gone through the manpage for shutdown and tried additionally appending the -P option to force a power off on shutdown, but that didn't have any effect. I'm not sure what other factors could be affecting the shutdown sequence, as I haven't installed any new packages or upgraded my system recently. The only thing I made any change to recently was /etc/rc.local, but I've since reverted /etc/rc.local to it's original (working) configuration.

Does anyone have any suggestions or workarounds?

Offline

#2 2010-06-04 14:01:51

joaca_rj
Member
From: Rio de Janeiro, Brazil
Registered: 2009-04-12
Posts: 76

Re: Shutdown command reboots computer

have u tried

shutdown -h now

?

Offline

#3 2010-06-04 15:15:58

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Shutdown command reboots computer

That's a problem with policy-kit. (I think) If you are in X, try starting like this:

exec ck-launch-session yourwm/de

Offline

#4 2010-06-04 17:23:52

wizulis
Member
From: Riga, Latvia
Registered: 2010-04-19
Posts: 27

Re: Shutdown command reboots computer

Try killing X and then shutdown from terminal. Had this problem with plymounth, solved by just not using it.

Offline

#5 2010-06-04 18:10:10

oldmerovingian
Member
From: Denver, Colorado
Registered: 2010-03-19
Posts: 60

Re: Shutdown command reboots computer

I have always used :

sudo poweroff

Offline

#6 2010-06-04 19:49:35

sprince09
Member
From: USA
Registered: 2010-05-27
Posts: 8

Re: Shutdown command reboots computer

wizulis wrote:

Try killing X and then shutdown from terminal. Had this problem with plymounth, solved by just not using it.

Good call. I'd forgotten this, but I installed plymouth like a week ago. I guess I hadn't shutdown my computer since then, and so I didn't notice the reboot bug till yesterday. To automate the process, I tried adding the following to /etc/rc.local.shutdown and then to /etc/rc.shutdown:

 # Shutdown X to avoid plymouth reboot bug 
/etc/rc.d/slim stop

This caused my system to hang on shutdown. I think I'm just going to submit a bug report to the plymouth guys and wait for a patch since I don't often shutdown my computer anyway (suspend works fine).

Thanks all for your replies smile

Offline

#7 2010-06-04 20:00:36

sprince09
Member
From: USA
Registered: 2010-05-27
Posts: 8

Re: Shutdown command reboots computer

Looks like I'm not the only one with this problem... note to self, check UAR discussion first next time hmm

http://aur.archlinux.org/packages.php?ID=26117

Offline

#8 2010-06-05 07:07:27

TaylanUB
Member
Registered: 2009-09-16
Posts: 150

Re: Shutdown command reboots computer

oldmerovingian wrote:

I have always used :

sudo poweroff

`init 0` FTW.


``Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.''
~ Albert Einstein

Offline

#9 2010-06-05 09:04:33

simpu
Member
From: patna,indore,india
Registered: 2010-01-24
Posts: 29

Re: Shutdown command reboots computer

use halt command to shut down as........
sudo halt

Last edited by simpu (2010-06-05 09:05:36)


You never will be the person you can be if pressure, tension and
discipline are taken out of your life.
                                                  James G. Bilkey

Offline

#10 2010-06-05 14:39:57

pickboy87
Member
From: Minnesota
Registered: 2010-02-12
Posts: 84
Website

Re: Shutdown command reboots computer

simpu wrote:

use halt command to shut down as........
sudo halt

Just came in to mention that. I also use:

$ sudo halt

It should start immediately shutting down.

Offline

Board footer

Powered by FluxBB