02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5<br />

Shell<br />

5.2.5 Rebooting from the Shell<br />

In an interactive real-time development session, it is sometimes convenient to<br />

restart everything to make sure the target is in a known state. WindSh provides the<br />

reboot( ) command or CTRL+SHIFT+X to make this easy.<br />

When you execute reboot( )or type CTRL+SHIFT+X, the following reboot sequence<br />

occurs:<br />

1. The shell displays a message to confirm rebooting has begun:<br />

5<br />

-> reboot<br />

Rebooting...<br />

2. The target reboots.<br />

3. The original target server on the host detects the target reboot and restarts<br />

itself, with the same configuration as previously. The target-server<br />

configuration options -Bt (timeout) and -Br (retries) govern how long the new<br />

server waits for the target to reboot, and how many times the new server<br />

attempts to reconnect; see the tgtsvr reference entry in D. <strong>Tornado</strong> Tools<br />

Reference, or in the HTML help.<br />

4. The shell detects the target-server restart and begins an automatic-restart<br />

sequence (initiated any time it loses contact with the target server for any<br />

reason), indicated with the following messages:<br />

Target connection has been lost. Restarting shell...<br />

Waiting to attach to target server......<br />

5. When WindSh establishes contact with the new target server, it displays the<br />

<strong>Tornado</strong> shell logo and awaits your input.<br />

NOTE: If the target server timeout (-Bt) and retry count (-Br) are too low for your<br />

target and your connection method, the new target server may abandon execution<br />

before the target finishes rebooting. The default timeout is one second, and the<br />

default retry count is three; thus, by default the target server waits three seconds<br />

for the target to reboot. If the shell does not restart in a reasonably short time after<br />

a reboot( ), try starting a new target server manually.<br />

169

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!