From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1GnWSW-00073Z-W1 for garchives@archives.gentoo.org; Fri, 24 Nov 2006 08:30:57 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAO8T6sO021978; Fri, 24 Nov 2006 08:29:06 GMT Received: from joe.tiscali.it (joe.tiscali.it [213.205.33.54]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAO8T6xx028430 for ; Fri, 24 Nov 2006 08:29:06 GMT Received: from c1358217.kevquinn.com (84.223.99.19) by joe.tiscali.it (7.3.116) id 455DE7DA000B8ACF for gentoo-amd64@lists.gentoo.org; Fri, 24 Nov 2006 09:29:06 +0100 Date: Fri, 24 Nov 2006 09:30:21 +0100 From: "Kevin F. Quinn" To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Interrupting portage gracefully Message-ID: <20061124093021.5f8a2572@c1358217.kevquinn.com> In-Reply-To: <7c08b4dd0611231654i14942091q77604ade34023afe@mail.gmail.com> References: <200611231821.13640.prh@gotadsl.co.uk> <1164316539.7082.0.camel@localhost> <456638A9.80805@digital-trauma.de> <7c08b4dd0611231654i14942091q77604ade34023afe@mail.gmail.com> X-Mailer: Sylpheed-Claws 2.5.6 (GTK+ 2.8.19; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_jR9msn46R=BlZA98h_3_.iU"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: 303e1879-457c-4336-b3ec-7c7c09eaf9b2 X-Archives-Hash: 190a029da2dfdc8d6d7a5368ed97de86 --Sig_jR9msn46R=BlZA98h_3_.iU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 23 Nov 2006 16:54:53 -0800 "Peter Davoust" wrote: > I don't know if this helps, but I usually run emerge && init > 0 so it shuts off after it's finished (it would be nice if portage had > an --shutdownafter option, but oh well). The only problem is that if > there's an error in portage it won't shut down. That's because by using '&&', you are explicitly telling bash to run the second command only if the first command succeeds. To run the second command regardless, use ';' to separate the commands: emerge ; init 0 It's a good idea to have logging switched on so if stuff failed you can find out why later. In make.conf set PORT_LOGDIR to a directory that exists; also setup the elog stuff, PORTAGE_ELOG_* - see /etc/make.conf.example (which is the only place they're documented) - I use: PORTAGE_ELOG_CLASSES=3D"info warn error log" PORTAGE_ELOG_SYSTEM=3D"save" which just dumps the relevant bits into a subdirectory "elog" of ${PORT_LOGDIR}. --=20 Kevin F. Quinn --Sig_jR9msn46R=BlZA98h_3_.iU Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFZq2i9G2S8dekcG0RAl5pAJ4+D1DQ/dZMnvFsipv3R2ceKM6W4ACfbMMK XmCSfl/nJDFGI+pRDIo27LU= =MxsE -----END PGP SIGNATURE----- --Sig_jR9msn46R=BlZA98h_3_.iU-- -- gentoo-amd64@gentoo.org mailing list