Linux ×Ô´øÁËÒ»¸ö watchdog µÄʵÏÖ£¬ÓÃÓÚ¼àÊÓϵͳµÄÔËÐУ¬°üÀ¨Ò»¸öÄÚºË watchdog module ºÍÒ»¸öÓû§¿Õ¼äµÄ watchdog ³ÌÐò
ÄÚºË watchdog Ä£¿éͨ¹ý /dev/watchdog Õâ¸ö×Ö·ûÉ豸ÓëÓû§¿Õ¼äͨÐÅ¡£Óû§¿Õ¼ä³ÌÐòÒ»µ©´ò¿ª /dev/watchdog É豸£¬¾Í»áµ¼ÖÂÔÚÄÚºËÖÐÆô¶¯Ò»¸ö 1·ÖÖӵĶ¨Ê±Æ÷£¬´Ëºó£¬Óû§¿Õ¼ä³ÌÐòÐèÒª±£Ö¤ÔÚ 1·ÖÖÓÖ®ÄÚÏòÕâ¸öÉ豸дÈëÊý¾Ý£¬Ã¿´Îд²Ù×÷»áµ¼ÖÂÖØÐÂÉ趨¶¨Ê±Æ÷¡£Èç¹ûÓû§¿Õ¼ä³ÌÐòÔÚ 1·ÖÖÓÖ®ÄÚûÓÐд²Ù×÷£¬¶¨Ê±Æ÷µ½ÆڻᵼÖÂÒ»´Îϵͳ reboot ²Ù×÷¡£
Óû§¿Õ¼ä³ÌÐò¿Éͨ¹ý¹Ø±Õ /dev/watchdog À´Í£Ö¹ÄÚºËÖеĶ¨Ê±Æ÷¡£
Óû§¿Õ¼äµÄ watchdog ÊØ»¤½ø³Ì£º
ÔÚÓû§¿Õ¼ä£¬»¹ÓÐÒ»¸ö½Ð×ö watchdog µÄÊØ»¤½ø³Ì£¬Ëü¿ÉÒÔ¶¨ÆÚ¶Ôϵͳ½øÐмì²â£¬°üÀ¨£º
Is the process table full?
Is there enough free memory?
Are some files accessible?
Have some files changed within a given interval?
Is the average work load too high?
Has a file table overflow occurred?
Is a process still running? The process is specified by a pid file.
Do some IP addresses answer to ping?
Do network interfaces receive traffic?
Is the temperature too high? (Temperature data not always available.)
Execute a user defined command to do arbitrary tests.
Èç¹ûijÏî¼ì²âʧ°Ü£¬Ôò¿ÉÄܵ¼ÖÂÒ»´Î¡¡soft reboot £¨Ä£ÄâÒ»´Î¡¡shutdown¡¡ÃüÁîµÄÖ´ÐУ©
Ëü»¹¿ÉÒÔͨ¹ý /dev/watchdog À´´¥·¢ÄÚºË watchdog µÄÔËÐС£
¸Ã°æ±¾ÐÞÕýÁ˺ܶàbug£¬Ìí¼ÓÁËһЩ¸üУ¬´ó²¿·ÖµÄ¸Ä¶¯Ö÷ÒªÊÇÌáÉýÔÚǶÈëϵͳÖеĿÉÓÃÐÔ¡£ÌرðÊÇÐÞ¸ÄÁËĬÈϵÄʱ¼ä¼ä¸ô£»ÁíÍâ watchdlog ¿ÉÃâÓÚÒòΪÄÚ´æ²»×ã¶øµ¼Ö³ÌÐò¹ÒÆð¡£
ÏÂÔØ watchdog 5.8
À´Ô´:oschina
messon007 ÓÚ 2010-03-29 00:02:43·¢±í:
¿´¿´
tvnet ÓÚ 2010-03-24 08:17:24·¢±í:
¿´ÃŹ·
xzj4167 ÓÚ 2010-03-24 07:08:30·¢±í:
:0wpoi2