On Fri, Mar 12, 2010 at 12:31:58PM -0500, Micah Anderson wrote:
> Approx used to honor TMP and TMPDIR environment variables, but I
> believe that when #451768 was uploaded, this stopped working.
> 
> It is important to be able to specify alternative temporary
> directories. I cannot run the daily approx cronjob now because my /tmp
> fills up, and I have no way of specifying an alternative location. :(

You're correct that approx currently ignores TMP and TMPDIR so that it
works OK with pam-tmpdir.  I'm sorry that this is inconveniencing you.

I think you can work around this by running the approx cron jobs in a
chroot with a bigger tmp:

# mkdir approx-chroot
# mount --bind / approx-chroot
# mount --bind /some/big/tmp/dir approx-chroot/tmp

Then in the cronjobs, use
    chroot approx-chroot approx-gc
instead of just approx-gc, etc.  You should also be able to run approx
(from inetd) in the same chroot, in case approx itself is ever filling
up /tmp.

Please let me know if this is a feasible workaround for you (and if
so, whether I can lower this to a normal or wishlist priority bug).

Cheers,
Eric

-- 
Eric Cooper             e c c @ c m u . e d u



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to