You are not logged in.

#1 2010-02-19 08:06:19

pedepy
Member
Registered: 2007-02-21
Posts: 198

halt-reboot weirdness

/sbin/halt reboots my laptop
/sbin/reboot is a symlink to 'halt' !?, and when i run it it hangs my laptop.


what happened?


chupocabra ... psupsuspsu psu psu

Offline

#2 2010-02-20 12:48:04

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: halt-reboot weirdness

The symlink seems normal, it matches what I have.  From man halt, under normal conditions 'halt' will invoke 'shutdown -h' and 'reboot' will invoke 'shutdown -r'.

As far as I know, the command 'halt' equals the command 'shutdown -h now' equals the command 'init 0'.  And 'reboot' equals ' shutdown -r now' equals 'init 6'.

Results of 'file /sbin/<command>':

reboot: symbolic link to `halt'
poweroff: symbolic link to `halt'
halt: setuid setgid ELF 64-bit LSB executable, x86-64, version 1 (SYSV), \
    dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
shutdown: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), \
    dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped

The shutdown problems you're having would seem to be caused by something other than the symlinks.  Perhaps it's the power management configuration?

Offline

#3 2010-02-20 15:44:00

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: halt-reboot weirdness

try with:

 sudo init 0

Offline

Board footer

Powered by FluxBB