root vc/1 Feb 15 10:18 14:15 1813
mina pts/0 Feb 15 10:19 02:11 1994
paul pts/1 Feb 15 10:45 01:00 2156
kid pts/2 Feb 15 11:06 03:34 2311
sed pts/3 Feb 15 11:06 02:56 2345
bla pts/5 Feb 15 12:00 . 2773
bla pts/6 Feb 15 14:32 00:34 3685
bla pts/7 Feb 15 18:33 ? 4901
Check the man page for it. It will warn all users that the system is going down at a particular time or in a particular interval. It will stop anyone else logging in during that time then kick the users off at the appropriate moment. Without using the -r option (reboot) or -h (halt) it will change the system to run level 1 at the given time.
So:
shutdown 22:30 "Please log off for system maintenence"
will have everyone see:
Broadcast message from root (pts/0) (Sat Feb 15 22:05:00 2003):
Please log off for system maintenence
The system is going DOWN to maintenance mode in 25 minutes!
and there will be successive messages during that period.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.