From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <447B113C.1090703@altlinux.ru> Date: Mon, 29 May 2006 18:20:28 +0300 From: Andrei Bulava User-Agent: Thunderbird 1.5.0.2 (X11/20060502) MIME-Version: 1.0 To: ALT Linux Sisyphus discussion list References: <200605291620.00828.trash4@yandex.ru> <447AEB9A.8060302@sakhalin.ru> <447AEF95.5040701@altlinux.ru> <447AFA1E.3000206@altlinux.ru> In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/mixed; boundary="------------050906000200060604030100" X-Virus-Scanned: ClamAV version 0.88.1, clamav-milter version 0.88.1 on alfa.lan.base3.it X-Virus-Status: Clean Subject: Re: [sisyphus] =?koi8-r?b?dWRldiwgaGFsIMkg3tTPINTBzSDFLi4u?= X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2006 15:20:44 -0000 Archived-At: List-Archive: List-Post: This is a multi-part message in MIME format. --------------050906000200060604030100 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Anton Farygin wrote: > =F7=CF=D4 =D4=C1=CB =D7=D3=C5=C7=C4=C1.. =CB=CF=C7=C4=C1 =C4=CF=C8=CF=C4= =C9=D4 =C4=C5=CC=CF =C4=CF =D0=C1=D4=DE=C5=CA. ;( >=20 > =E9=CC=C9 =D7=D9 =C4=D5=CD=C1=C5=D4=C5 =DE=D4=CF =D1 =CE=C5 =DA=CE=C1=C0= =D0=D2=CF =DC=D4=D5 "=C6=C9=DE=D5" chkconfig --reset ? :-) > =F0=D2=C1=D7=C9=CC=D8=CE=D9=CA =D7=C1=D2=C9=C1=CE=D4 - =CC=C9=C2=CF =DA= =C1=C6=C9=CB=D3=C9=D4=D8 chkconfig --reset, =DE=D4=CF =C2=D9 =CF=CE =CE=C5= =20 > =D7=CB=CC=C0=DE=C1=CC/=D7=D9=CB=CC=C0=DE=C1=CC =D3=C5=D2=D7=C9=D3, =C1 = =D4=CF=CC=D8=CB=CF =CD=C5=CE=D1=CC =C5=C7=CF =D0=CF=D2=D1=C4=CF=CB, =C5=D3= =CC=C9 =D7=CB=CC=C0=DE=C5=CE. =EE=C1=D7=C5=D2=CE=CF=C5, =CE=C5 =D3=D4=CF=C9=D4 =CE=C1=D3=D4=CF=CC=D8=CB= =CF =CF=D4=CC=C9=DE=C1=D4=D8=D3=D1 =CF=D4 =C4=D2=D5=C7=C9=C8. > =E9=CC=C9 =CE=C1=D0=C9=D3=C1=D4=D8 =D3=D7=CF=C0 =D2=C5=C1=CC=C9=DA=C1=C3= =C9=C0 =D3 =D4=C1=CB=C9=CD =D6=C5 =C1=CC=C7=CF=D2=C9=D4=CD=CF=CD. =F7 =C1=D4=D4=C1=DE=C5 - =CE=C1=C2=D2=CF=D3=CF=CB. =F0=CF =D3=D4=C1=CE=C4= =C1=D2=D4=CE=CF=CA =D4=C1=CB=D3=C5 - $445 =D7 =CB=C1=D3=D3=D5 :-) =ED=CE=C5= =C4=D5=CD=C1=C5=D4=D3=D1, =DE=D4=CF ldv@ =D2=C1=D3=DB=C9=D2=C9=D4 =D3=DE=A3= =D4, =D4.=CB. =D1 - =CB=C1=DA=D5=C1=CC =D7 bash programming. =F7=CF=DA=CD=CF=D6=CE=CF, =D0=CF=D3=CC=C5 =CF=C2=D3=D5=D6=C4=C5=CE=C9=D1 = pro =C9 contra =D0=CF=C8=CF=D6=C9=CA =CB=CF=C4 =D0=CF=D1=D7=C9=D4=D3=D1 =D7= /usr/sbin/post_service? --=20 // AB1002-UANIC --------------050906000200060604030100 Content-Type: text/plain; name="chkconfig_update.sh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="chkconfig_update.sh" #!/bin/sh SERVICE=messagebus LEVELS="0 1 2 3 4 5 6" declare -a STATE for LEVEL in $LEVELS; do /sbin/chkconfig --level $LEVEL $SERVICE STATE[$LEVEL]=$? done /sbin/chkconfig $SERVICE reset for LEVEL in $LEVELS; do LEVEL_STATE=${STATE[$LEVEL]} if [ $LEVEL_STATE == 0 ]; then /sbin/chkconfig --level $LEVEL $SERVICE on elif [ $LEVEL_STATE == 1 ]; then /sbin/chkconfig --level $LEVEL $SERVICE off fi done --------------050906000200060604030100--