itcms Verified User Joined Jul 4, 2019 Messages 105 Location Athens Jul 20, 2019 #1 Hi, Its safe to install and setup tmpwatch to check every 24 hours or need more ? yum install tmpwatch Put into crontab (or editing /var/spool/cron/root) this entry: Code: 0 * * * * /usr/sbin/tmpwatch --mtime --all 24 /tmp
Hi, Its safe to install and setup tmpwatch to check every 24 hours or need more ? yum install tmpwatch Put into crontab (or editing /var/spool/cron/root) this entry: Code: 0 * * * * /usr/sbin/tmpwatch --mtime --all 24 /tmp
U urgido Verified User Joined Oct 28, 2008 Messages 431 Location MX Jul 22, 2019 #2 same question here.
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,366 Location www.poralix.com Jul 24, 2019 #3 Found a first link https://www.google.com/search?q=centos7 + tmpwatch where they say: There’s no need for the tmpwatch cron job because systemd-tmpfiles does its job. Read the ‘tmpfiles.d’ man page. Configuration for the temp directories is in /usr/lib/tmpfiles.d/tmp.conf, and you can add your own files in /etc/tmpfiles.d/*.conf. Click to expand...
Found a first link https://www.google.com/search?q=centos7 + tmpwatch where they say: There’s no need for the tmpwatch cron job because systemd-tmpfiles does its job. Read the ‘tmpfiles.d’ man page. Configuration for the temp directories is in /usr/lib/tmpfiles.d/tmp.conf, and you can add your own files in /etc/tmpfiles.d/*.conf. Click to expand...