Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

halt(8) [osf1 man page]

halt(8) 						      System Manager's Manual							   halt(8)

NAME
halt - Stops the processor SYNOPSIS
/usr/sbin/halt [-d] [-l] [-n] [-q] [-y] DESCRIPTION
If other users are logged into the system, or if the system is operating at a multiuser run level, use the /usr/sbin/shutdown -h command to halt the system. If only the root user is logged in, and you do not plan to restart the system immediately, use the halt command. The halt command writes data to the disks and then stops the processor(s), but does not reboot the machine. You must be the root user to run this command. When the system displays the ....Halt completed.... message, you can turn off power to the machine. If the command is invoked without the -l, -n, or -q flag, the halt program logs the shutdown using the syslogd command and places a record of the shutdown in the login accounting file, /var/adm/wtmp. Using the -q and the -n flags imply the -l flag. FLAGS
Generates a crash dump of the system before halting it. Can be used with any other flag. Does not log the halt using syslog Prevents the sync before stopping, and does not log the halt using syslog Causes a quick halt, does not log the halt using syslog, and makes no attempt to kill all processes Halts the system from a dial-up operation EXAMPLES
To halt the system without logging the shutdown in the log file, enter: halt -l To halt the system quickly, enter: halt -q To halt the sys- tem quickly, also leaving a crash dump for the savecore command, enter: halt -d -q To halt the system from a dial-up, enter: halt -y FILES
Specifies the command path Specifies the syslog daemon Specifies the login accounting file RELATED INFORMATION
Commands: fasthalt(8), reboot(8), savecore(8), shutdown(8), syslogd(8) Functions: reboot(2), sync(2), syslog(3) delim off halt(8)

Check Out this Related Man Page

halt(1M)						  System Administration Commands						  halt(1M)

NAME
halt, poweroff - stop the processor SYNOPSIS
/usr/sbin/halt [-dlnqy] /usr/sbin/poweroff [-dlnqy] DESCRIPTION
The halt and poweroff utilities write any pending information to the disks and then stop the processor. The poweroff utility has the machine remove power, if possible. The halt and poweroff utilities normally log the system shutdown to the system log daemon, syslogd(1M), and place a shutdown record in the login accounting file /var/adm/wtmpx. These actions are inhibited if the -n or -q options are present. OPTIONS
The following options are supported: -d Force a system crash dump before rebooting. See dumpadm(1M) for information on configuring system crash dumps. -l Suppress sending a message to the system log daemon, syslogd(1M), about who executed halt. -n Prevent the sync(1M) before stopping. -q Quick halt. No graceful shutdown is attempted. -y Halt the system, even from a dialup terminal. FILES
/var/adm/wtmpx History of user access and administration information. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
dumpadm(1M), init(1M), reboot(1M), shutdown(1M), sync(1M), syslogd(1M), inittab(4), attributes(5), smf(5) NOTES
The halt and poweroff utilities do not cleanly shutdown smf(5) services. Execute the scripts in /etc/rcnum.d or execute shutdown actions in inittab(4). To ensure a complete shutdown of system services, use shutdown(1M) or init(1M) to reboot a Solaris system. SunOS 5.10 2 Nov 2004 halt(1M)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Data Access Error

Dear Reader, My Sun Machine comes to halt with a message 'Data Access Error'. What / Where could be wrong..?? Thanks in Advance.... (5 Replies)
Discussion started by: joseph_shibu
5 Replies

2. UNIX for Dummies Questions & Answers

I changed PS1 and now ....

Hello I am using Debain Potato and I changed the PS1. When I log in locally everythink is fine, except that when I enter a long row without hitting enter, then it word wraps automatically. And it does it not at the end of the row, it does it in the middle of the row! It also does not writes... (7 Replies)
Discussion started by: Fwurm
7 Replies

3. UNIX for Advanced & Expert Users

where's solaris halt log?

hi folks could tell my anyone where solaris 8 stores the logs about shutdown/halt command. I found no entries in syslog, but there more logs directories. probabaly a stupid question, but fast help would be great! thanks king regards, patrick (6 Replies)
Discussion started by: mrsaint
6 Replies

4. Programming

How to halt Prog Execution for some time?

Hi, Perhaps I am asking a silly question, but I really don't know about it. Can anyone tell me the function for "sleep" kind of functionality in C language for Unix. I don't think any function with the name of sleep() exits in Unix's C language. or perhaps I am not known with the header file... (3 Replies)
Discussion started by: Ahsan
3 Replies

5. UNIX for Dummies Questions & Answers

making a .sh wait for user input

I need a script to halt at the end and wait for the user to hit a key...could be any ket or enter. I know it can be done but I am just starting out.. Thanks (9 Replies)
Discussion started by: verystupid
9 Replies

6. UNIX for Dummies Questions & Answers

Uh.. help!

Ok.. for some reason my system loves to halt every so many seconds.. everytime it halts.. it halts for about 1-2 seconds.. completely PAUSING the whole system (my mouse freezes and keyboard freezes) for about 1-2 seconds.. it's starting to piss me off.. what do you think might be the problem? i'm... (4 Replies)
Discussion started by: drone_
4 Replies

7. UNIX for Dummies Questions & Answers

Executable files

This question always confuses me :- Suppose I write a program and compile it on a machine with operating system A and processor B will the exe file run on a machine with operating system A2 but processor B operating system A but processor B2 operating system A2 and processor B2........ ... (9 Replies)
Discussion started by: nervous
9 Replies

8. Shell Programming and Scripting

Unix Shell Scripting

Hi All, Greetings!! I am trying to write a script that will get me the syslog.log file output of last week... That is ...my cron will run on Monday and will get me the syslog output of previous week , last monday-last sunday. I tried using date formatting and tail..but did not succeed.... (4 Replies)
Discussion started by: premamadhuri
4 Replies

9. Linux

Limit size of log file from syslog

Hi, I'm using Linux 2.6 cross compiled for a embedded powerpc. Earlier we were using busybox syslogd for logging the messages, but as the flexibilty is less, we decided to move to standard syslog. Now I want to limit the size of the log file (/var/log/messages) to 128K. I couldn't find... (4 Replies)
Discussion started by: jockey007
4 Replies

10. Solaris

/var/log/syslog

Hi, Solaris : 9 I noticed /var/log/syslog message file growing fast in abnormal way since 4 or 5 days. due to this my root / filesystem is getting filled with 100% . root $ls -ltr total 4683730 -rwxrwxrwx 1 root sys 0 Oct 17 2005 authlog -rwxrwxrwx 1 root ... (17 Replies)
Discussion started by: maooah
17 Replies

11. UNIX for Dummies Questions & Answers

Trying to figure out a log dump command

Ok so i'm relatively new at UNIX and I'm trying to figure out how to make a log dump command. My situation is a bit odd in that I'm always looking at customers boxes and as such I can't really do much to them. So everything I do in UNIX pretty much has to be a command I can type in by hand. I... (4 Replies)
Discussion started by: MrEddy
4 Replies

12. Solaris

Changing of syslog file path instead of /var/log directory

Hi Please let me know how can we change the syslog file path from /var/log to /a directory in solaris Regards (4 Replies)
Discussion started by: amity
4 Replies

13. Red Hat

WOL problems "halt"

Hello, sry for my bad english, is not my native language http://forums.citrix.com/images/emoticons/wink.gif I have a XenServer, and XenServer runs on a RedHat linux system. So i would start my xenserver with wake on lan. I configured the network card with the ethtool: the option... (7 Replies)
Discussion started by: PeterStrunz
7 Replies

14. AIX

AIX: How to find down who enter a command?

Hi I'm working on AIX. My question: for example, I'm logging in. I enter command "last" and then I know there are 3 people logging in from 3 different IP at the same time, 2 are in the same account. Then someone enters a command. Is there any way to know exactly who ( which IP ) enters... (9 Replies)
Discussion started by: bobochacha29
9 Replies

15. Debian

Profiling Processes while shutdown

I was wondering how can I find the culprit of a slow shutdown on my debian box? I am actually looking for a diagnosis tool that might dump the process name and amount of time it took to close the process after signal was send. As for now I am trying to use journalctl to seek some information,... (5 Replies)
Discussion started by: Varun Pandey
5 Replies