09-19-2007
The shutdown command runs various shutdown scripts and then finally invokes the halt command. Not running those scripts could be a problem depending on what they do. As one example, if you are running an Oracle database, you could lose transactions or even mangle the database. The shutdown command can also notify the users that a shutdown is about to happen. So yes you should use the shutdown command rather than halt. But if you tried shutdown and it hung, a halt command is better than simply turning off the power switch because "halt" will at least attempt to sync the disks which is better than nothing.
The shutdown command will only result in the halt command being run if you are halting the system. My feeling is that most shutdown commands are to reboot the system rather than halt it. These wind up invoking "reboot" rather than "halt". And "shutdown" is better than "reboot" for this. Again, you want those shutdown scripts to run.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. Programming
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
3. Solaris
Hi Experts,
I have to delete the non- global zone from one of the server.
As per my understanding we need to halt the zone , then uninstall and later delete it with zoneadm however once I am trying to halt the zone the screen is getting hanged, after canceling the process and... (23 Replies)
Discussion started by: kumarmani
23 Replies
4. AIX
Hi,
What is the difference between those two ?
thanks
Vilius (1 Reply)
Discussion started by: vilius
1 Replies
5. Solaris
Hi,
Am new to solaris.Can anyone explains me the difference between using init and shutdown command. As per my knowledge shutdown will give notification to users, is there anything apart from that.
thanks in advance. (6 Replies)
Discussion started by: rogerben
6 Replies
6. UNIX for Dummies Questions & Answers
I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS).
Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies
7. UNIX for Advanced & Expert Users
=========================================================
Errrr previously post: https://www.unix.com/sco/140055-sco-open-server-6-system-halt.html
Then I think it's better to post here. If I wrong, please ignore.
=========================================================
Dear All,
Newbie... (1 Reply)
Discussion started by: virgani
1 Replies
8. SCO
Dear All,
Newbie here, hope my post goes to the correct room.
System: SCO Open Server 6.0
Everything running well, after this Sunday morning noone can login via telnet or via putty, the system suddenly reject without any message (and also ftp). The local IT Support there (without enough... (2 Replies)
Discussion started by: virgani
2 Replies
9. Emergency UNIX and Linux Support
I've got critical patching this weekend on 6 HP UX machines, back to back and the customer has requested to shutdown, and halt the machines and to bring it up at a later period. The thing is the servers are located offshore and we are just the support team. I have a special login thru a console... (16 Replies)
Discussion started by: hedkandi
16 Replies
10. Solaris
Hi experts,
I am running a solaris 10 with oracle 10 on a system with 96 GB physical memory. the system has a lot of swap space. the oracle SGA is 50 GB and PGA 40 GB. Here are the stats
vmstat -i
interrupt total rate
--------------------------------
clock ... (5 Replies)
Discussion started by: afadaghi
5 Replies
HALT(8) halt HALT(8)
NAME
halt, poweroff, reboot - Halt, power-off or reboot the machine
SYNOPSIS
halt [OPTIONS...]
poweroff [OPTIONS...]
reboot [OPTIONS...]
DESCRIPTION
halt, poweroff, reboot may be used to halt, power-off or reboot the machine.
OPTIONS
The following options are understood:
--help
Prints a short help text and exits.
--halt
Halt the machine, regardless of which one of the three commands is invoked.
-p, --poweroff
Power-off the machine, regardless of which one of the three commands is invoked.
--reboot
Reboot the machine, regardless of which one of the three commands is invoked.
-f, --force
Force immediate halt, power-off, reboot. Do not contact the init system.
-w, --wtmp-only
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
-d, --no-wtmp
Do not write wtmp shutdown entry.
--no-wall
Do not send wall message before halt, power-off, reboot.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
NOTES
These are legacy commands available for compatibility only.
SEE ALSO
systemd(1), systemctl(1), shutdown(8), wall(1)
systemd 208 HALT(8)