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.60) (envelope-from ) id 1G6woH-00001c-3n for garchives@archives.gentoo.org; Sat, 29 Jul 2006 21:57:25 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6TLtK2e030798; Sat, 29 Jul 2006 21:55:20 GMT Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6TLrAKB010127 for ; Sat, 29 Jul 2006 21:53:11 GMT Received: by py-out-1112.google.com with SMTP id d42so195987pyd for ; Sat, 29 Jul 2006 14:53:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=snHrjRKUGWrEuGVKTFTT43dBrxR8B0TewsMvAKM0CTQB/6k7XkBMADpOjaDsd8lJyACqbjISMHj+j05cf/tF5H0K8zUz5fYVVNHJ5wlSEMPM8V9MHsDp8TbUdsi8l22SjSBILsxXm9w+QV84g3AVfOhl8et6VoEPw8Li8cScMNE= Received: by 10.35.110.13 with SMTP id n13mr1369569pym; Sat, 29 Jul 2006 14:53:10 -0700 (PDT) Received: by 10.35.74.11 with HTTP; Sat, 29 Jul 2006 14:53:09 -0700 (PDT) Message-ID: <5e5428ed0607291453q5afb1f0bxafd6c6a24008d700@mail.gmail.com> Date: Sat, 29 Jul 2006 23:53:09 +0200 From: "farfargoth@gmail.com" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Is this cruft in my /tmp? In-Reply-To: <200607292236.41140.bo.andresen@zlin.dk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Disposition: inline References: <200607222350.42913.michaelkintzios@gmail.com> <20060723052549.GB4806@sympatico.ca> <200607231218.46831.michaelkintzios@gmail.com> <200607292236.41140.bo.andresen@zlin.dk> X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k6TLrAKB010127 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k6TLtK3B030798 X-Archives-Salt: b90fc705-0c2c-4a4c-92ce-e985589b888a X-Archives-Hash: 92d0619de7bc2b3ab7d1a8093128c857 On 7/29/06, Bo =D8rsted Andresen wrote: > On Sunday 23 July 2006 13:18, Mick wrote: > > I checked the script I have in my /etc/X11/Sessions/fluxbox: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > eval "$(gpg-agent --daemon)" > > /usr/bin/startfluxbox > > kill `echo ${GPG_AGENT_INFO} | cut -d ':' -f 2` > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > > > Running these separately after I kill gpg-agent *and* empty the /tmp/= gpg-* > > entities gives me the following semi-illuminating response: > > > > $ eval "$(gpg-agent --daemon)" > > can't connect to `/home/michael/.gnupg/log-socket': Connection refuse= d > > > > Why does this happen? A new ENV variable has been created alright in = the > > /tmp dir: > > > > $ echo ${GPG_AGENT_INFO} > > /tmp/gpg-0UQfJ1/S.gpg-agent:11772:1 > > > > I think that the kill `echo ${GPG_AGENT_INFO} | cut -d ':' -f 2` line= in my > > fluxbox start up script kills the gpg-agent process but does not seem= to > > flush the ENV variable, hence all this cruft accumulates in /tmp. > > > > Does anyone else have this problem? >=20 > Apparently gpg-agent does clean up properly after it when it is killed.= I have > just changed my gpg-agent.sh shutdown script as shown below. The rm and= rmdir > lines should make it clean up nicely after it. >=20 > $ cat ~/.kde/shutdown/gpg-agent.sh > #!/bin/sh > # the second field of the GPG_AGENT_INFO variable is the > # process ID of the gpg-agent active in the current session > # so we'll just kill that, rather than all of them :) > if [[ -n ${GPG_AGENT_INFO} ]]; then > kill $(echo ${GPG_AGENT_INFO} | cut -d ':' -f 2) > rm $(echo ${GPG_AGENT_INFO} | cut -d ':' -f 1) > rmdir $(dirname `echo ${GPG_AGENT_INFO} | cut -d ':' -f 1`) > unset GPG_AGENT_INFO > fi >=20 > -- > Bo Andresen >=20 >=20 First off, doesn't one of the boot scripts clean /tmp? Or is that just my= imagination? Second, I have found that it is better to mount /tmp as a tmpfs. That way= I get a (slight) increase in performance when I'm ripping cd's and stuff= , I don't risk running out of space on / (not all that big of a problem, = though), whenever I turn the computer of /tmp get's cleared and, last but= not least, I tell myself that I get more battery-time on my laptop since= it doesmn't have to write to disk as much. Yay! To do this, all you need is to put none /tmp tmpfs defaults 0= 0 in /etc/fstab. Add size=3Dnbytes to select maximum size of the filesystem= . Defaults to half of ram. --=20 gentoo-user@gentoo.org mailing list