On Mon, Dec 12, 2005 at 09:37:59PM +0200, Jari Aalto wrote: > Package: approx > Version: 2.00 > Severity: normal > > The cron job /etc/cron.weekly/approx includes lines > > find /var/cache/approx/. -type d -empty | xargs rmdir > su approx -c "gc_approx --quiet" > > PROBLEMS > > 1. There is no account "gc_approx"
The cron job is supposed to be su'ing to user "approx" (the owner of the /var/cache/approx cache, etc.) and then running the program gc_approx. This userid should have been created by the postinst script; can you verify it's in your /etc/passwd? Do you have an error email from cron that suggests differently? I see that the su man page says the "-c ..." argument should come before the username, although it works on my systems in either order. But I'll change it to conform to the documented behavior. > 2. xargs fails if find(1) call is empty > [...] > - use option "--no-run-if-empty" with xargs to prevent failure. Good catch. I'll do that. -- Eric Cooper e c c @ c m u . e d u -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]