According to the man page on my RH5 box

-t sec Tell init(8) to wait sec seconds between sending processes the warning and the kill signal, before changing to another runlevel.


So the reboot will happen after +1 min. As part of the shutdown process, init will send a friendly kill signal (pretty sure it's a SIGTERM) and then wait 100 seconds before sending a SIGKILL.

If you want to wait 100 seconds before rebooting, do


shutdown -r  +2

I figure rounding up is better in this instance.

Hugh

siman hew wrote:
Thanks for the quick reply.

The problem is that seems -t does not work at all.

If you type:
shutwodn -t 100 -rk +1; date

if your interpretation is correct, the output of date should be current time
+ 1 minutes + 100 seconds.
But the reality is just one minute.

A bug of shutdown command?

Thanks a lot.


On 8/20/07, Jos Vos <[EMAIL PROTECTED]> wrote:
On Mon, Aug 20, 2007 at 11:29:35AM -0400, siman hew wrote:

For example, if I type:
shutdown -t 30 -r now

I should "feel" I wait about 30 seconds before real rebooting start.
However, what I got it is that the machine is rebooting right away.

Is anything I missed or misunderstood here?
If you do "... -t X ... Y", I think Y should be greater than X.
The "now" is leading here (although I've never used -t myself).

Just my interpretation...

--
--    Jos Vos <[EMAIL PROTECTED]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list



------------------------------------------------------------------------

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

--
System Administrator
DIVMS Computer Support Group

University of Iowa
Email: [EMAIL PROTECTED]
Voice: 319-335-0748

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to