From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 14 Apr 2005 18:16:10 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Subject: Re: [devel] Re: apcupsd, =?koi8-r?Q?incomi?= =?koi8-r?Q?ng_=C9?= /etc/init.d/halt Message-ID: <20050414141610.GA3962@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <200504132020.30611.asy@altlinux.ru> <200504141818.00366.asy@altlinux.ru> <20050414132854.GA304@basalt.office.altlinux.org> <200504141908.31186.asy@altlinux.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <200504141908.31186.asy@altlinux.ru> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2005 14:16:11 -0000 Archived-At: List-Archive: List-Post: --envbJBWh7q8WU6mo Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 14, 2005 at 07:08:30PM +0500, Sergey Y. Afonin wrote: > On Thursday 14 April 2005 18:28, Dmitry V. Levin wrote: >=20 > > > =F7=C9=C4=C9=CD=CF, 2,3,4,5. =E9 =D0=D2=CF=D7=C5=D2=D1=D4=D8, =CE=C5 = =D0=CF killpower =CC=C9 =D5=C8=CF=C4=C9=CD =D3 =D2=C1=CE=CC=C5=D7=C5=CC=C1.= =20 > >=20 > > =EE=C5 =D7=C9=D6=D5 =D3=CD=D9=D3=CC=C1 =CD=C5=CE=D1=D4=D8 =D5=D3=D4=D2= =CF=CA=D3=D4=D7=CF runlevel'=CF=D7. >=20 > =FA=C1=DE=C5=CD =CD=C5=CE=D1=D4=D8 ?!=20 >=20 > =F0=D2=CF=D3=D4=CF =D3=CB=D2=C9=D0=D4 =D3=20 > # chkconfig: 2345 10 00 >=20 > =EE=C1 S10 =CD=CF=D6=CE=CF =CE=C5 =D2=C5=C1=C7=C9=D2=CF=D7=C1=D4=D8. >=20 > =E9=CC=C9 =D1 =DE=D4=CF =CE=C5 =D0=CF=CE=C9=CD=C1=C0 ? =E5=D3=CC=C9 =CE= =C5 =D0=CF=CE=C9=CD=C1=C0, =C4=D5=CD=C1=C0, =CD=CF=D6=CE=CF =D0=CF=D0=D2=C1= =D7=C9=D4=D8=20 =E9=CC=C9 =D1 =CE=C5 =D0=CF=CE=C9=CD=C1=C0, =DE=D4=CF =D7=D9 =D0=D2=C5=C4= =CC=C1=C7=C1=C5=D4=C5, =C9=CC=C9 =CF=C4=CE=CF =C9=DA =C4=D7=D5=C8. > > halt =3D=3D poweroff =CE=C1 =D7=D3=C5=C8 runlevel'=C1=C8, =CB=D2=CF=CD= =C5 0 =C9 6. >=20 > =E4=C1, =D1 =D4=C1=CB =D0=CF=CE=D1=CC, =DE=D4=CF =CF=CE=CF =D7=D3=C5=C7= =C4=C1 =D3=D4=C1=CC=CF poweroff =C4=C5=CC=C1=D4=D8. =EE=CF =D1 =D7=D3=C5 = =D2=C1=D7=CE=CF =CE=C5 =D0=CF=CE=D1=CC,=20 > =DE=D4=CF =CD=C5=DB=C1=C5=D4 =D7 /etc/init.d/halt =DA=C1=CD=C5=CE=C9=D4= =D8=20 >=20 > UPSCTL=3D/etc/apcupsd/apccontrol > if [ -x "$UPSCTL" -a -f /etc/apcupsd/powerfail ]; then > action "Attempting to turn the UPS off:" "$UPSCTL" killpower > message=3D"The system is halted" > command=3D/sbin/poweroff > fi >=20 > UPSCTL=3D/sbin/upsdrvctl > if [ -x "$UPSCTL" -a -f /etc/killpower ]; then > action "Attempting to turn the UPS off:" "$UPSCTL" shutdown > message=3D"The system is halted" > command=3D/sbin/poweroff > fi >=20 > =CE=C1=20 >=20 > UPSCTL=3D/etc/apcupsd/apccontrol > if [ -x "$UPSCTL" -a -f /etc/apcupsd/powerfail ]; then > action "Attempting to turn the UPS off:" "$UPSCTL" killpower > message=3D"The system is halted" > command=3D/sbin/halt > fi >=20 > UPSCTL=3D/sbin/upsdrvctl > if [ -x "$UPSCTL" -a -f /etc/killpower ]; then > action "Attempting to turn the UPS off:" "$UPSCTL" shutdown > message=3D"The system is halted" > command=3D/sbin/halt > fi >=20 > ? =EE=C5 =D7=D3=C5=C7=C4=C1 =DC=D4=CF =D5=C4=CF=C2=CE=CF. =E5=D3=CC=C9 ups =D0=D2=CF=D3=D4=CF =CE=C5 =D5=CD=C5=C5=D4 killpower, =C1 b= ios =CE=C5 =D5=CD=C5=C5=D4 =DA=C1=D0=CF=CD=C9=CE=C1=D4=D8 =D3=CF=D3=D4=CF= =D1=CE=C9=C5, =D4=CF poweroff =CF=CB=C1=DA=D9=D7=C1=C5=D4=D3=D1 =C7=CF=D2=C1=DA=C4=CF =D0= =D2=C1=CB=D4=C9=DE=CE=C5=C5, =DE=C5=CD halt. =F0=CF=C8=CF=D6=C5, =DE=D4=CF =DC=D4=CF =D0=CF=D7=C5=C4=C5=CE=C9=C5 =C4=CF= =CC=D6=CE=CF =C2=D9=D4=D8 =C2=CF=CC=C5=C5 =D5=D0=D2=C1=D7=CC=D1=C5=CD=D9=CD= , =DE=C5=CD =D3=C5=CA=DE=C1=D3. --=20 ldv --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCXnsq9viEa8HiNCkRAjkNAJ44qjUY4EfhQBNKZ5i7IcRXSOaStgCdH+O1 JySUHFCbTcdhLVQmEVN7Dyo= =V30J -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--