LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   reboot not working (https://www.linuxquestions.org/questions/debian-26/reboot-not-working-422075/)

gauri 03-06-2006 03:01 AM

reboot not working
 
Hi All,

I am having a stange behavior of my system. I used to use the following command to reboot my system

Shutdwon -r 0
It sometimes reboot my system and some time it is just halt the system.

If I do the hard reboot there is no probem absolutely.

I tried intit 6 this also behave in the same way.

Also I want to know why reboot is having a softlink to halt reboot -> halt

So reboot should do the same thing as halt?

Thanks & Regards
Gauri

Dead Parrot 03-06-2006 04:25 AM

You should be able to reboot your system by hitting the key combination Ctrl-Alt-Del (this action is set in /etc/inittab), or by using any of the following commands: "reboot", "shutdown -r now", "init 6", "telinit 6".

To halt your system, you can use one of these commands: "halt", "shutdown -h now", "init 0", "telinit 0".

For more info, you can check out the man pages for reboot, halt, shutdown, and init.

Notice that halt and poweroff are different shutdown actions -- Debian sets the default action in /etc/default/halt.

stefan_nicolau 03-07-2006 08:17 PM

Quote:

Also I want to know why reboot is having a softlink to halt reboot -> halt
The program can know whether it was called as reboot or halt and it should act accordingly.


All times are GMT -5. The time now is 10:00 PM.