You are not logged in.

#1 2010-05-09 06:20:29

chakra-user
Member
Registered: 2010-03-07
Posts: 74

[SOLVED]What happened to halt???

I am noticing a funny thing since past 2 days, I have a cron script that automatically shuts down the system and eventually powering it off. But the same is not working either from cron or even from command line. below is my last pacman update log

2010-05-07 02:52] synchronizing package lists
[2010-05-07 02:53] starting full system upgrade
[2010-05-07 03:04] upgraded dbus-glib (0.82-2 -> 0.86-1)
[2010-05-07 03:04] upgraded fuse (2.8.3-1 -> 2.8.4-1)
[2010-05-07 03:04] upgraded gstreamer0.10 (0.10.28-1 -> 0.10.29-1)
[2010-05-07 03:04] upgraded gstreamer0.10-base (0.10.28-1 -> 0.10.29-1)
[2010-05-07 03:04] upgraded imlib2 (1.4.2-6 -> 1.4.4-1)
[2010-05-07 03:04] upgraded libgadu (1.8.2-4 -> 1.9.0rc3-1)
[2010-05-07 03:04] upgraded libsigc++2.0 (2.2.6-1 -> 2.2.7-1)

After thus upgrade, halt -p, halt, shutdown -p now, poweroff etc etc simply reboots the machine instead of powering it off. Does anyone know why? Is it a bug in halt script?

Last edited by chakra-user (2010-05-10 15:33:08)

Offline

#2 2010-05-09 10:08:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]What happened to halt???

If the update broke sth, the guilty package probably was 'dbus-glib'.
Can you post the script?

Offline

#3 2010-05-09 11:39:38

chakra-user
Member
Registered: 2010-03-07
Posts: 74

Re: [SOLVED]What happened to halt???

It is a cron command in crontab that, at a particular time, runs "shutdown -h now".

Offline

#4 2010-05-09 12:40:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]What happened to halt???

I've just did 'shutdown -h now' and it powered off, as expected.

Offline

#5 2010-05-09 15:12:08

chakra-user
Member
Registered: 2010-03-07
Posts: 74

Re: [SOLVED]What happened to halt???

Is it becoz I recently installed Plymouth? Ironically, if I shutdown via KDE Menu, it Powers off. But the same command of shutdown -h now, /sbin/halt etc reboots but does not halt. Is KDE using some magical options now?

Offline

#6 2010-05-10 02:57:07

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED]What happened to halt???

Possibly. I had problems with plymouth when I used it briefly. halt still works fine for me here.


neutral

Offline

#7 2010-05-10 15:32:45

chakra-user
Member
Registered: 2010-03-07
Posts: 74

Re: [SOLVED]What happened to halt???

Finally solved it. The culprit was indeed plymouth. Even after removing plymouth from HOOKS and rebuilding the kernel thereby ensuring plymouth is never run, the shutdown -h now was not working. After lot of looking around it struck me why not remove it completely as during shutdown I was seeing a blank page and not shutdown steps being run. That was the nail in the coffin for plymouth and halt now powerdown correctly. Phew.

Offline

Board footer

Powered by FluxBB