1 .\" This page is originally in the SysVinit package.
3 .\" Translated Fri 14 Feb 1997 by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
4 .\" Updated Tue 2 May 2000 by Kentaro Shirakata <argrath@ub32.org>
6 .TH POWERD 8 "Feb 14, 1994" "" "Linux System Administrator's Manual"
8 .\"O .\" powerd \(em monitor a serial line connected to an UPS.
9 .\"O powerd -- monitor a serial line connected to an UPS.
10 powerd \- UPS¤ËÀܳ¤µ¤ì¤¿¥·¥ê¥¢¥ë¥é¥¤¥ó¤ò¥â¥Ë¥¿¡¼¤¹¤ë
16 .\"O is a daemon process that sits in the background and monitors the state
17 .\"O of the DCD line of the serial device. This line is meant to be
18 .\"O connected to a UPS (Uninterruptible Power Supply) so that \fBpowerd\fP knows
19 .\"O about the state of the UPS. As soon as \fBpowerd\fP senses that the
20 .\"O power is failing (it sees that DCD goes low) it notifies \fBinit\fP(8),
21 .\"O and \fBinit\fP then executes the \fBpowerwait\fP and \fBpowerfail\fP entries.
23 ¤Ï¡¢¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Ç¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Î DCD ¥é¥¤¥ó¤Î¾õÂÖ¤ò¥â¥Ë¥¿¡¼¤¹¤ë
24 ¥Ç¡¼¥â¥ó¥×¥í¥»¥¹¤Ç¤¢¤ë¡£
25 DCD ¥é¥¤¥ó¤Ï UPS(̵ÄäÅÅÅŸ») ¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¤ÈÁÛÄꤵ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢
26 \fBpowerd\fP¤ÏUPS¤Î¾õÂÖ¤òÃΤ뤳¤È¤¬½ÐÍè¤ë¡£
27 \fBpowerd\fP¤ÏÄäÅŤò¸¡ÃΤ¹¤ë(DCD¤¬low¤Ë¤Ê¤ë)¤È¤½¤Î»Ý¤ò¤¹¤°¤Ë
28 \fBinit\fP(8)¤ËÃΤ餻¡¢\fBinit\fP¤Ï\fBpowerwait\fP¤È\fBpowerfail\fP
29 ¥¨¥ó¥È¥ê¡¼¤ò¼Â¹Ô¤¹¤ë¡£
30 .\"O If \fBpowerd\fP senses that the power has been restored, it notifies \fBinit\fP
31 .\"O again and \fBinit\fP will execute the \fBpowerokwait\fP entries.
32 ÅŸ»¤Î²óÉü¤ò¸¡ÃΤ·¤¿ºÝ¤Ï¡¢\fBpowerd\fP¤Ï\fBinit\fP¤Ë¤½¤Î»ÝÄÌÃΤ·¡¢
33 \fBinit\fP¤Ï\fBpowerokwait\fP¥¨¥ó¥È¥ê¡¼¤ò¼Â¹Ô¤¹¤ë¡£
36 ¾¤Îµ¡´ï¤¬»ÈÍѤ·¤Æ¤ª¤é¤º¡¢¤Þ¤¿Â¾¤Î¤¤¤º¤ì¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤È¤â³ä¤ê¹þ¤ß¤ò
37 ¶¦Í¤·¤Æ¤¤¤Ê¤¤¥·¥ê¥¢¥ë¥Ý¡¼¥È¡£
39 \fBPowerd\fP¤Ï\fBDSR\fP¥é¥¤¥ó¤¬high¤Ç¤¢¤ë¤«¤òÄê´üŪ¤ËÄ´¤Ù¤ë¡£
40 \fBDSR\fP¤Ï\fBDTR\fP¤ËľÀܤËÀܳ¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
41 \fBpowerd\fP¤Ï¤³¤Î¥é¥¤¥ó¤ò high ¤ËÊݤĤΤǡ¢\fBDSR\fP¥é¥¤¥ó¤¬ low ¤Ë
42 ¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤ÏÀܳ¤Ë°Û¾ï¤¬¤¢¤ë¡£
43 ¤³¤Î¾ì¹ç\fBPowerd\fP¤Ï2ʬËè¤Ë·Ù¹ð¤ò¤À¤¹¡£
44 Àܳ¤¬Éü³è¤·¤¿¤³¤È¤ò¸¡ÃΤ·¤¿ºÝ¤Ï¤½¤Î»Ý¤òÄÌÃΤ¹¤ë¡£
46 UPS ¤ò Linux ¥Þ¥·¥ó¤ËÀܳ¤¹¤ë»ö¤Ï»ê¤Ã¤Æ´Êñ¤Ç¤¢¤ë¡£
50 ¼¡¤Î¤è¤¦¤Êñ½ã¤Ê¥ê¥ì¡¼½ÐÎϤò»ý¤Ã¤¿ UPS ¤Ç¤¢¤ë¤«¤ò³Îǧ¤¹¤ë:
51 ÅŸ»¤¬Íî¤Á¤¿¾ì¹ç¤ÏÀܳ¤·(make)¡¢Àµ¾ï¤Ê»þ¤ÏÀܳ¤òÀä¤Ä(break)¤â¤Î¡£
54 ¥·¥ê¥¢¥ë¥×¥é¥°¤ò¹ØÆþ¤¹¤ë¡£
55 DTR ¥é¥¤¥ó¤ò DSR ¥é¥¤¥ó¤ËľÀܤËÀܳ¤¹¤ë¡£
56 DTR ¥é¥¤¥ó¤È DCD ¥é¥¤¥ó¤ò\fB10K¦¸\fP¤ÎÄñ¹³¤ÇÀܳ¤¹¤ë¡£
57 ¼¡¤¤¤Ç¡¢UPS ¤Î¥ê¥ì¡¼½ÐÎϤò GROUND µÚ¤Ó DCD Àþ¤ËÀܳ¤¹¤ë¡£
58 ¤É¤Î¥Ô¥ó¤¬ DSR, DTR, DCD µÚ¤Ó GROUND ¤«Ê¬¤«¤é¤Ê¤¤»þ¤Ï¡¢
59 ¥×¥é¥°¤òÇã¤Ã¤¿Å¹¤Ç¿Ò¤Í¤ì¤Ð¶µ¤¨¤Æ¤¯¤ì¤ë¤À¤í¤¦¡£
64 ¥Ð¥°¤Ç¤Ï¤Ê¤¤¤¬¡¢Ê£¿ô¤Î Linux-box ¤¬Æ±¤¸ UPS ¤«¤éÅŸ»¤ò¼è¤Ã¤Æ¤¤¤ë¤¬¡¢
65 UPS ¤Î¥¹¥Æ¡¼¥¿¥¹¥é¥¤¥ó¤Ë¤Ï°ìÂ椷¤«Àܳ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢
66 \fBpowerd\fP ¤¬¥¤¡¼¥µ¥Í¥Ã¥È¤ò²ð¤·¤Æ UPS ¤Î¾õÂÖ¤òÄÌÃΤǤ¤ëÍͤˤ¹¤ë¤Ù¤¤À¤í¤¦¡£
72 Miquel van Smoorenburg, miquels@cistron.nl