[sf-lug] server reboot

Alex Kleider akleider at sonic.net
Sun Jan 1 11:19:57 PST 2017


On 2016-12-31 21:03, Michael Paoli wrote:
> Unless I'm in some great rush, I'm often more inclined to
> do something like:
> # (cd / && umask 022 && echo 'shutdown -r +2' | batch)
> 
> That at least gives anyone that happens to login between when
> one checks if anyone's logged in, and start of the shutdown command
> execution, a 2 minute warning.  It also allows oneself 2 minutes to
> change one's mind ... "just in case".
> 
> I'll also often include reasonably informative message, e.g.:
> # cd / && shutdown -r +10 '
>> '`hostname`' rebooting to test [whatever...]
>> '

What purpose is served by the first two parts?
( cd /  && umask 022 )

...and again thank you to all for the interesting discussion.



More information about the sf-lug mailing list