On Thu, 23 Nov 2006 16:54:53 -0800
"Peter Davoust" <[EMAIL PROTECTED]> wrote:

> I don't know if this helps, but I usually run emerge <package> && 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 <package> ; 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="info warn error log"
PORTAGE_ELOG_SYSTEM="save"

which just dumps the relevant bits into a subdirectory "elog" of
${PORT_LOGDIR}.

-- 
Kevin F. Quinn

Attachment: signature.asc
Description: PGP signature

Reply via email to