Quote:
Originally Posted by fogwatch
Hello
I start shutdown -h 22:30 & as part of boot. The problem is that terminals thereafter get contaminated with stupid messages like: Broadcast message from root (Thu Oct 29 10:30:05 2009):
The system is going DOWN for system halt in 780 minutes!
How do I change the frequency of shutdown's broadcast message?
Regards
Fog_Watch.
# uname -r
2.6.26-gentoo-r3
|
Do you know why "shutdown" is printing that message? Because you told it to. Computers are famous for doing exactly what you tell them. Supposedly that's a "good thing".
If you don't want the message, then put the scheduled shutdown in cron instead. Example:
Code:
25 22 * * * root shutdown -h +5
This will cause a warning to be printed at 22:25 and a shutdown at 22:30.
Code:
30 22 * * * root shutdown -h now
This will cause a shutdown at 22:30 with a warning immediately prior.