§Úèèµo²{©³¤U¦³¤@¨Ç¸ê®Æ¤w¸g¹L®É¤F¡C¨ä¤¤¨Ó¦Û
the latest sysvinit package
ªº init
daemon ¤ñ°_§Ú©Ò¯à´yzªºÁÙ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ªº³¹¸`¨Ó´yz·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