[0019] Example
[0020] figure 2 It shows the basic structure of the system for automatically restarting the network server (as indicated by the dashed line with the reference number 200) of the present invention. As shown in the figure, in practical applications, the network server automatic restart system 200 of the present invention is used for the network server 10, and the host unit 20 of the network server 10 (ie the central processing unit and all related hardware facilities are the general term ) Execute the operating system 30 dedicated to the server. The network server automatic restart system 200 of the present invention can automatically cause the network server 10 to perform a reactivation procedure (reboot) when the host unit 20 or the operating system 30 of the network server 10 is in a down condition, so that the down condition occurs. The web server 10 resumes its normal operation state.
[0021] The basic structure of the object-oriented component model of the system 200 for automatically restarting the network server when it is down according to the present invention includes at least: (a) a downtime response module 210; (b) a monitoring timer 220; and (c) An SMI processing module 230.
[0022] The system for automatically restarting a web server when it is down according to the present invention includes: a downtime response module 210, which is used to regularly respond to whether the operating system 30 of the web server 10 is in a normal operating state, that is, to respond to the web server 10 every predetermined length of time. The information sent by the operating system 30; and the information received each time is synchronously transmitted to the monitoring timer 220.
[0023] The implementation of the monitoring timer 220 is to directly use the I/O control chip in the network server 10, such as a Southbridge or Super I/O chip, with a built-in watchdog timer; and this monitoring timer 220 may start to execute a timing program for a predetermined period of time each time it receives an operation message transmitted by the aforementioned downtime response module 210, for example, timing from zero to 59 seconds; if the predetermined timing period is reached Previously, when the next normal operation message sent by the aforementioned downtime response module 210 was received again, it would be reset to zero and time again; if the next operation information was not received, the timing program of the monitoring timer 220 would be After the predetermined timing period is exceeded, such as at the 60th second (that is, when the monitoring timer 220 generates an overflow), a system abnormality signal is sent to the SMI processing module 230 immediately.
[0024] The implementation of the SMI processing module 230 is to use the I/O control chip in the web server 10, for example, a Southbridge or Super I/O chip, in which the built-in SMI signal module, and through the BIOS (Basic Input/Output System) is a judgment module to judge whether its SMI signal is sent by the monitoring timer 220. If it is the SMI signal sent by the monitoring timer 220, the BIOS sends a reset signal RESET to the host unit 20 to make the host unit 20 automatically executes a restart procedure, that is, reloads the operating system 30, so that the network server 10 in the downtime condition resumes normal operation.
[0025] The method for automatically restarting a web server after web server downtime of the present invention at least includes: the downtime response module 210 continues to reflect whether the operating system 30 of the web server 10 is in an operating state every predetermined period of time; and the received information Synchronously transmitted to the monitoring timer 220; the monitoring timer 220 can start to execute a timing program for a predetermined period of time every time it receives an operation information transmitted by the downtime response module 210; if the predetermined time period is reached Before the timing period, when the next operation information sent by the downtime response module 210 is received again, it will be reset to zero and time again; if the next operation information sent by the downtime response module 210 is not received, monitor the timing The processor will generate an overflow, and then send an abnormal signal to the SMI processing module 230. The SMI processing module 230 can respond to the abnormal signal sent by the monitoring timer 220, and the BIOS will determine whether it is sent by the monitoring timer 220, and if so, send a restart signal RESET to the host unit 20, so that the host unit 20 automatically executes a restart procedure. That is, the operating system 30 is reloaded, so that the network server 10 that has been in the downtime condition can resume its normal operation state.
[0026] In summary, the present invention provides a novel method and system for automatically restarting a web server when it is down. It can be applied to a web server to make the web server that has a downtime automatically execute when the web server is down. -Reactivate the program. The feature of the network server automatic restart method and system of the present invention is that the monitoring timer in the I/O control chip (for example, the South Bridge chip or Super I/O chip) in the network server is directly used to trigger an SMI processing The program (instead of the IRQ processing program used in the prior art), the SMI processing program triggers the host unit of the network server to automatically execute a reactivation program. Compared with the prior art, the present invention directly utilizes the existing hardware facilities in the network server (that is, the South Bridge chip or the Super I/O chip), and only modifies the BIOS in the network server (that is, writing SMI Judgment processing procedures), so users do not need to spend extra costs to purchase additional hardware and software facilities, you can let the network server have the function of automatically restarting when it is down. In addition, since the present invention does not need to use the IRQ signal to perform the shutdown automatic restart function, it will not be unable to perform the shutdown automatic restart function due to the operating system shutdown. Therefore, the present invention has better progress and practicability than the prior art.