Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
halt(8)
Edit
PageHistory
Diff
Info
LikePages
HALT !!!HALT NAME SYNOPSIS DESCRIPTION OPTIONS DIAGNOSTICS NOTES AUTHOR SEE ALSO ---- !!NAME halt, reboot, poweroff - stop the system. !!SYNOPSIS __/sbin/halt__ [[__-n__] [[__-w__] [[__-d__] [[__-f__] [[__-i__] [[__-p__] [[__-h__]__ /sbin/reboot__ [[__-n__] [[__-w__] [[__-d__] [[__-f__] [[__-i__]__ /sbin/poweroff__ [[__-n__] [[__-w__] [[__-d__] [[__-f__] [[__-i__] [[__-h__] !!DESCRIPTION __Halt__ notes that the system is being brought down in the file ''/var/log/wtmp'', and then either tells the kernel to halt, reboot or poweroff the system. If __halt__ or __reboot__ is called when the system is ''not'' in runlevel __0__ or __6__, in other words when it's running normally, __shutdown__ will be invoked instead (with the __-h__ or __-r__ flag). For more info see the shutdown(8) manpage. The rest of this manpage describes the behaviour in runlevels 0 and 6, that is when the systems shutdown scripts are being run. !!OPTIONS __-n__ Don't sync before reboot or halt. __-w__ Don't actually reboot or halt but only write the wtmp record (in the ''/var/log/wtmp'' file). __-d__ Don't write the wtmp record. The __-n__ flag implies __-d__. __-f__ Force halt or reboot, don't call shutdown(8). __-i__ Shut down all network interfaces just before halt or reboot. __-h__ Put all harddrives on the system in standby mode just before halt or poweroff. __-p__ When halting the system, do a poweroff. This is the default when halt is called as __poweroff__. !!DIAGNOSTICS If you're not the superuser, you will get the message `must be superuser'. !!NOTES Under older __sysvinit__ releases , __reboot__ and __halt__ should never be called directly. From release 2.74 on __halt__ and __reboot__ invoke shutdown(8) if the system is not in runlevel 0 or 6. This means that if __halt__ or __reboot__ cannot find out the current runlevel (for example, when ''/var/run/utmp'' hasn't been initialized correctly) __shutdown__ will be called, which might not be what you want. Use the __-f__ flag if you want to do a hard __halt__ or __reboot__. The __-h__ flag puts all harddisks in standby mode just before halt or poweroff. Right now this is only implemented for IDE drives. A side effect of putting the drive in standby mode is that the write cache on the disk is flushed. This is important for IDE drives, since the kernel doesn't flush the write-cache itself before poweroff. The __halt__ program uses /proc/ide/hd* to find all IDE disk devices, which means that /proc needs to be mounted when __halt__ or __poweroff__ is called or the __-h__ switch will do nothing. !!AUTHOR Miquel van Smoorenburg, miquels@cistron.nl !!SEE ALSO shutdown(8), init(8) ----
5 pages link to
halt(8)
:
Man8h
killall5(8)
pidof(8)
shutdown(8)
reboot(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.