From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 17 May 2011 17:59:55 +0400 From: "Dmitry V. Levin" To: ALT Linux Team development discussions Message-ID: <20110517135955.GC9872@altlinux.org> Mail-Followup-To: ALT Linux Team development discussions References: <20110517032103.GB7895@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jy6Sn24JjFx/iggw" Content-Disposition: inline In-Reply-To: X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] =?koi8-r?b?z8LOz9fMxc7J0SDQwcvF1M/XINMg0M/ExMXS1svPyiBz?= =?koi8-r?b?eXN0ZW1k?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 13:59:55 -0000 Archived-At: List-Archive: List-Post: --jy6Sn24JjFx/iggw Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 17, 2011 at 04:35:13PM +0400, Alexey Shabalin wrote: > 17 =CD=C1=D1 2011=9A=C7. 7:42 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 Alexey= Shabalin =CE=C1=D0=C9=D3=C1=CC: > > 17 =CD=C1=D1 2011=9A=C7. 7:21 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 Dmit= ry V. Levin =9A=CE=C1=D0=C9=D3=C1=CC: > >> On Tue, May 17, 2011 at 07:12:07AM +0400, Alexey Shabalin wrote: > >> [...] > >>> =EE=C1=C4=CF =DA=C1=D0=D5=D3=D4=C9=D4=D8 =DE=D4=CF-=D4=CF =D4=C9=D0=C1 > >>> if chkconfig foobar ; then > >>> =9A chkconfig foobar on > >>> fi > >>> (=C5=D3=CC=C9 =D3=C5=D2=D7=C9=D3 =D7=CB=CC=C0=DE=C5=CE, =D7=CB=CC=C0= =DE=C9=D4=D8 =C5=C7=CF =C5=DD=A3 =D2=C1=DA - =D7 =DC=D4=CF=D4 =D2=C1=DA =D5= =D6=C5 =D3 > >>> =D0=C5=D2=C5=CE=C1=D0=D2=C1=D7=CC=C5=CE=C9=C5=CD =CE=C1 systemd) > >> [...] > >>> =F1 =D0=CF=CB=C1 =D0=D2=C9=C4=D5=CD=C1=CC =D4=CF=CC=D8=CB=CF =CD=CF= =C4=C9=C6=C9=C3=C9=D2=CF=D7=C1=D4=D8 post_service: > >>> > >>> --- post_service.def =9A2011-03-17 01:41:42.000000000 +0300 > >>> +++ post_service =9A =9A =9A2011-05-17 07:02:27.640147135 +0400 > >> [...] > >>> @@ -14,5 +30,9 @@ > >>> =9A =9A =9A /sbin/chkconfig --add "$1" > >>> =9Aelse > >>> =9A =9A =9A /sbin/chkconfig "$1" resetpriorities ||: > >>> + =9A =9A [ -f "$SYSTEMD_SERVICE_DIR/$1.service" ] && > >>> + =9A =9A =9A =9A =9A =9A systemd_is_active && > >>> + =9A =9A =9A =9A =9A =9A /sbin/chkconfig --no-redirect "$1" && > >>> + =9A =9A =9A =9A =9A =9A /sbin/chkconfig "$1" on > >>> =9A =9A =9A /sbin/service "$1" condrestart ||: > >>> =9Afi > >> > >> =F1 =C2=D9 =D0=D2=C5=C4=D0=CF=DE=C5=CC, =DE=D4=CF=C2=D9 =CC=C9=C2=CF c= hkconfig resetpriorities =D7=D9=D0=CF=CC=CE=D1=CC =DC=D4=D5 > >> =D3=C9=CE=C8=D2=CF=CE=C9=DA=C1=C3=C9=C0, =CC=C9=C2=CF =D0=CF=D1=D7=C9= =CC=D3=D1 =C5=DD=C5 =CF=C4=C9=CE =D2=C5=D6=C9=CD =D7 chkconfig =C4=CC=D1 = =D3=C9=CE=C8=D2=CF=CE=C9=DA=C1=C3=C9=C9. > >> =F7=C1=D2=C9=C1=CE=D4 =D3 resetpriorities =D0=D2=C5=C4=D0=CF=DE=D4=C9= =D4=C5=CC=D8=CE=C5=C5, =D0=CF=D3=CB=CF=CC=D8=CB=D5 =D4=CF=C7=C4=C1 =CE=C5 = =D0=D2=C9=C4=C5=D4=D3=D1 > >> =D4=D2=CF=C7=C1=D4=D8 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=C5=CA chkconfi= g'=C1. > > > > =E2=CF=C0=D3=D8, =DE=D4=CF =D1 =DC=D4=CF=C7=CF =CE=C5 =CF=D3=C9=CC=C0. = =ED=C1=CB=D3=C9=CD=D5=CD, =DE=D4=CF =CD=CF=C7=D5 - =D3=C4=C5=CC=C1=D4=D8 = =D7=D3=C5=C7=C4=C1 > > =D7=CB=CC=C0=DE=C5=CE=C9=C5 =D3=C5=D2=D7=C9=D3=C1 =D0=D2=C9 resetpriori= ties :) >=20 > =F7 =CF=C2=DD=C5=CD =D5 =CD=C5=CE=D1 =D0=CF=CC=D5=DE=C9=CC=CF=D3=D8 =D3= =CC=C5=C4=D5=DD=C5=C5: >=20 > return setService(name, type, where, 0); > } else if (!strcmp(state, "reset")) > return setService(name, type, where, -1); > - else if (!strcmp(state, "resetpriorities")) > + else if (!strcmp(state, "resetpriorities")) { > + if (!noRedirectItem && isOn(name, level)) { > + forwardSystemd(name, type, "enable"); > + } > return setService(name, type, where, -2); > + } > else > usage(EXIT_FAILURE); > } >=20 > =E5=D3=CC=C9 =C9=D3=D0=CF=CC=D8=DA=D5=C5=D4=D3=D1 systemd =C9 =C5=D3=CC= =C9 =D2=C1=CE=D8=DB=C5 =D3=C5=D2=D7=C9=D3 =C2=D9=CC =D7=CB=CC=C0=DE=A3=CE, = =D4=CF =D0=D2=C9 > =DA=C1=D0=D5=D3=CB=C5 =D3 resetpriorities =C5=DD=A3 =DA=C1=D0=D5=D3=CB=C1= =C5=D4=D3=D1 systemctl enable =C4=CC=D1 > =D3=C5=D2=D7=C9=D3=C1. > =F4=C1=CB =D5=D3=D4=D2=CF=C9=D4? =F3=D5=C4=D1 =D0=CF =CF=D0=C9=D3=C1=CE=C9=C0, =C4=C1. P.S. =CB=CF=C4 =D1 =CE=C5 =D3=CD=CF=D4=D2=C5=CC. --=20 ldv --jy6Sn24JjFx/iggw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk3Sf1sACgkQfKvmrJ41Nh6OpACgoaXpYgAaxijs70iWG1TNoaXG 39UAniOJNTVUCdJbd4cbh4yyhnS0lDsO =pv5J -----END PGP SIGNATURE----- --jy6Sn24JjFx/iggw--