Home | Forum | MAN Pages | Tutorials | Directory | HOWTOs | About Me | Contact
 
FAQS
» Advanced Routing & Traffic Control
» General FAQ
» Squid Proxy Server
» Sendmail
» Fetchmail
» Postfix
» Connecting Mobile Phone
» Paging from Linux
» Standard Commands
» Some common terms
Linux HOWTOs
- Single List of HOWTOs
- ACPI-HOWTO
- Cable-Modem
- CPU-Design-HOWTO
- DOSEMU HOWTO
- Jaz Drive HOWTO
- Glibc Install HOWTO
- Indic-Fonts-HOWTO
- Lego
- Masquerading-Simple-HOWTO
- NET3-4-HOWTO
- PCMCIA-HOWTO
- Process-Accounting
- Secure-POP+SSH
- Speech-Recognition-HOWTO
- StarOffice
- User-Group-HOWTO
- VPN-HOWTO
- Windows-Newsreaders-under-Linux-HOWTO
- XFree86-Touch-Screen-HOWTO
- ADSL Bandwidth Management
- Compile Apache
- Make a Bootdisk
- Linux-Windows9x-Grub
- Linux-Windows
- Linux Crash Recovery
- Optimise Squid
- Block websites in Squid
- Broadcast webcam in linux
- Compile RedHat Linux kernel
- Implement Firewall Security
- Increase Harddrive Performance
- Mount NTFS filesystem
- Patch / rebuild SRPM
- Secure Linux
- Set up a DHCP Server
- Set up an FTP server
- Set up Linux as a Router
- Use Cron
- Samba
Miscellaneous
» All Ports
» Spammers fetch email addresses
» Mounting NTFS in linux
» Linux Gazette
» Linux Man Pages
» Linux Directory
Linux Man Pages
- Section 1
- Section 2
- Section 3
- Section 4
- Section 5
- Section 6
- Section 7
- Section 8
Linux Directory
- General Information
- Linux Hardware
- Software / Applications
- Web Technology
- Software Development
- Linux Distributions
- Linux Publications
- Linux Beginners

linux,man,pages,linux man pages,squid,ntfs,mount
 

Name

shutdown — close down the system

Synopsis

shutdown [ −h | −r ] [−fqs] [ now | hh:ss | +mins ] [message]

reboot [ −h | −r ] [−fqs] [ now | hh:ss | +mins ] [message]

fastboot [ −h | −r ] [−fqs] [ now | hh:ss | +mins ] [message]

halt [ −h | −r ] [−fqs] [ now | hh:ss | +mins ] [message]

fasthalt [ −h | −r ] [−fqs] [ now | hh:ss | +mins ] [message]

DESCRIPTION

In general, shutdown prepares the system for a power down or reboot. A absolute or delta time can be given, and periodic messages will be sent to all users warning of the shutdown. If no message is specified on the command line, shutdown will ask for a message to be sent, unless the −q option is set.

halt is the same as shutdown -h -q now

fasthalt is the same as shutdown -h -q -f now

reboot is the same as shutdown -r -q now

fastboot is the same as shutdown -r -q -f now

The default delta time, if none is specified, is 2 minutes.

Five minutes before shutdown (or immediately, if shutdown is less than five minutes away), the /etc/nologin file is created with a message stating that the system is going down and that logins are no longer permitted. The login (1) program will not allow non-superusers to login during this period. A message will be sent to all users at this time.

When the shutdown time arrives, shutdown notifies all users, tells init(8) not to spawn more getty(8)'s, writes the shutdown time into the /var/log/wtmp file, kills all other processes on the system, sync(2)'s, unmounts all the disks, sync(2)'s again, waits for a second, and then either terminates or reboots the system.

Prior to unmounting all discs, the SIGQUIT signal is sent to the init process, which will in turn exec shutdown(8). This allows for clean unmounting, even if the old inode for the init process was unlinked. If the current process ID (PID) equals 1, then shutdown(8) will pause forever.

OPTIONS

−h

Halt the system. Do not reboot. This option is used when powering down the system.

−r

Reboot the system.

−f

Fast. When the system is rebooted, the file systems will not be checked. This is arranged by creating /fastboot, which /etc/rc must detect (and delete).

−q

Quiet. This uses a default broadcast message, and does not prompt the user for one.

−s

Reboot in single user mode. This is arranged by creating /etc/singleboot, which simpleinit(8) detects (and deletes).

FILES

/etc/rc
/fastboot
/etc/singleboot
/etc/nologin
/var/log/wtmp
/etc/shutdown.conf

CONFIG

The configuration file /etc/shutdown.conf is used to determine the action to take when halting the machine. The currently supported file format is extremely primitive. The first line must contain two strings separated by whitespace. The first string must be HALT_ACTION and the second specifies the action you wish to take on halt. The options allowed are:

halt

This will simply halt the system. This is the default behaviour. Note also that this is the fallback if another option fails.

power_off

This will use the kernel power shutdown facility. This is usually only available on machines with Advanced Power Management (APM).

programname

This specifies a command to run to shut down the power. The first character must be a "/". Bear in mind that this command will be run with only the root filesystem mounted (and it will be read-only), and no daemons running.

BUGS

Unlike the BSD shutdown, users are notified of shutdown only once or twice, instead of many times, and at shorter and shorter intervals as "apocalypse approaches." Some would construe this as a feature.

AUTHOR

This page documents the version of shutdown originally written by Peter Orbaek (poe@daimi.aau.dk).


  Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
May be distributed under the GNU General Public License

 
Random Linux Commands
Bash
The "Bourne- Again Shell". Used as the default shell (command line) on most Unix distributions. Bash features command and filename completion (tab key), and a searchable history of commands that have already been entered (up-down arrow keys).

Common Linux terms
Linux-FAQs Forum Categories
» About Forum
» Hardware Troubleshooting in Linux
» Linux Entertainment
» Resources
» Software toubleshooting and configuration
All Linux-FAQs Forums
» Crash Recovery
» FAQs
» Forum Talk
» Games
» General
» Linux Audio Support
» Linux Hardware / Driver
» Linux Installation Support
» Linux misc.
» Linux Networking
» Linux Newbies
» Linux Printing Support
» Linux Security
» Linux Video Support
» Mail Server
» Multimedia
» Tutorials
» Web Proxy Server
» Web Server

linux,man,man pages,faqs,howtos,forum
 
Powered by HTML
Linux-faqs.com Copyright, All rights reserved www.linux-faqs.com. Peeyush Maurya.