Tmpwatch cron job fails with : /usr/sbin/tmpwatch: unrecognized option '--fuser' tmpwatch 2.11 - (C) 1997-2009 Red Hat, Inc. All rights reserved. This program may be freely redistributed under the terms of the GNU General Public License version 2. tmpwatch [-u|-m|-c] [-MUXadfqtvx] [--verbose] [--force] [--all] [--nodirs] [--nosymlinks] [--test] [--quiet] [--atime|--mtime|--ctime] [--dirmtime] [--exclude <path>] [--exclude-user <user>] [--exclude-pattern <pattern>] <hours-untouched> <dirs> Job test -x /usr/sbin/run-crons && /usr/sbin/run-crons terminated (exit status: 1) (mailing output) Despite --fuser option mentioned in manpage Reproducible: Always Steps to Reproduce: 1.install tmpwatch 2.uncomment example config in /etc/cron.daily/tmpwatch 3. observe error with fuser option Actual Results: Error Expected Results: No error and cleaning of tmpdirs.
Does building it with --with-fuser=/bin/fuser configure option solve the problem?(you will need psmisc package)
(In reply to Pacho Ramos from comment #1) Hi, soory it took me so long to respond (some other stuff got in way)... Is there any way to supply this to emerge, or do I need to build package by hand? Cheers S
Try: EXTRA_ECONF="--with-fuser=/bin/fuser" emerge -1 tmpwatch Good luck!
That is strange (aside of that I have fuser in /sbin)... I have noticed that this problem is localized to only one of my machines. And there is still same problem even when built with --with-fuser=/bin/fuser (or --with-fuser=/sbin/fuser). Versions of tmpwatch and psmisc are same across all machines (2.11 and 22.21-r2). emerge --info: https://gist.github.com/samuraiii/c5075edcfaeff50b61302aa65b31cd85
What error are you getting with -r2? At least in my case the option seems recognized: # tmpwatch --fuser error: time (in hours) must be given
Hi again, yes I can confirm that upgrading to -r2 helped in my case. Thank you and closing S