Next Previous Contents

2. ½Ðª`·N¤w¹L®Éªº¸ê°T

§Ú­è­èµo²{©³¤U¦³¤@¨Ç¸ê®Æ¤w¸g¹L®É¤F¡C¨ä¤¤¨Ó¦Û the latest sysvinit package ªº init daemon ¤ñ°_§Ú©Ò¯à´y­zªºÁÙ­n²­®¡C ¾¨ºÞ¬Ý°_¨Ó¥Ø«eªºª©¥»»P¸Óµ{¦¡§¹¦¨®Éªºª©¥»¬Û®e¡A¦ý·í¤¤¤´µM¦³¤@¨Ç¹ï UPS ¬Û·í­«­n ªº¤ä´©¨S¦³¤å¥ó»¡©ú¡C

©³¤U©Ò²­zªº±±¨î¾÷¨î¥u¯àÅý powerd °eµ¹ init powerfail ©Î powerok ³o¨â­Ó°T®§¤§¤@¦Ó¤w¡Cinit ±µ¨ì powerfail °T®§®É°õ¦æ¤@­Ó©R¥O¡A¦Ó·í¥¦±µ¨ì powerok ®É«h°õ¦æ¥t¤@­Ó©R¥O¡C ³o±N¾É¦Ü powerd ¦b³B²z§C¹q¤O°T¸¹¤Î¨ä¥L¯S®íª¬ªp®É²£¥ÍÅÞ¿è¤Wªº½ÆÂø©Ê¡C

¸û·sª©¥»ªº init (¹³¬O 2.58 ª©) ´N¤ñ¸ûºë¨}¤F¡C ¥¦¥i¥H¦b±µ¨ì°T¸¹®É¿ï¾Ü ¤T­Ó script ¤¤¤§¤@¨Ó°õ¦æ¡C¦p¦¹¤@¨Ó¡A init ¥i¥H¦b±µ¨ì¹q·½Â_¹q°T¸¹®É°õ¦æ powerfail script ¡A¥i¥H°õ¦æ¤@­Ó powerfailnow script °µ¥ß§YªºÃö¾÷ ¡A¥H¤Î¤@­Ó powerok script ¨Ó°±¤î¥ô¦ó¥¿¦b¶i¦æªºÃö¾÷°Ê§@¡C³o¼Ë¤ñ°_­n§Ú­Ì¦Û¦æ³B²z³o¨Ç¾÷¨î­n²³æ¦h¤F¡C

¾¨ºÞ³oùؤj³¡¤Àªº°Q½×¤´°²³]¨Ï¥Îªº init ³q°T¤è¦¡¡A §Ú¤w¥[¤J¤F¨â­Ó·sªº³¹¸`¨Ó´y­z·sªº³s½u¤èªk¡C³o¨â­Ó³¹¸`¬O <@ref>ciroTrust Energy Protector 400/650 ¤Î <@ref>ciroTrust Energy Protector 400/650<@ref>apc700APC Smart-UPS 700¡C¨ä¤¤«eªÌ¯S§O¸Ô²Ó¡C¤GªÌ³£¥]§t¤F¤@­Ó powerd.c ÀÉ¡A ¥¦¥i¥H¦b¦¬¨ì§C¹q¤O°T¸¹®É°e°T¸¹µ¹ init ¥H¶i¦æºò«æÃö¾÷¡A ´N¹³¬O /etc/inittab Àɤ¤¨º´X¦æ©Ò¼gªº¤@¼Ë¡C¨ä¾lªº¡A §Ú©Ò¯à§i¶D±zªº´N¥u¦³½Ð±z¬Ý¬Ý init ªº­ì©l½X¤F¡C

´N§Ú©Òª¾ªº¡A¦b¥H¤U©Ò¦Cªº UPS ³nÅé®M¥ó¤¤¦³³\¦h¤]±Ä¥Î¤F·s¦¡ªº³s½u¤è¦¡¡C


Next Previous Contents