A new feature is now in
place: Remote Server Restart
How to use it:
1) start a domain with asadmin. You don't need to specify any special
options. It will automatically start both the domain and a "watchdog"
process. The watchdog is very lightweight. It will not block and it
will return once it has verified that the domain has started. So
scripts that start domains should work exactly as before.
e.g.
asadmin start-domain
2)
to restart the domain, run this remote command from
any computer:
asadmin restart-domain
3) to stop the domain and the watchdog simply run
asadmin stop-domain
Notes:
- To NOT start the watchdog you need to run start-domain with
the "--nowatchdog" option.
- You can start the domain with the --verbose option and it
will be a watchdog and will echo all server log messages
- The watchdog process owns no window and its name in jps will
appear as ASWatchdog
- In Verbose mode the name will appear as before and it does
have a window and it blocks on the domain.
- If you try the restart-domain on a domain that was started
with no watchdog - it is (by definition) an error and the domain will
not be stopped.
- Killing the server always kills the watchdog automatically.
Vice versa will be true too when the issue below is fixed.
Known Issue:
- If you kill the watchdog process it will not kill the
server. It will eventually do this exactly like verbose handles ^C
entered at the console
--
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: