Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 645012

Summary: sys-process/fcron-3.2.1-r2: USE="system-crontab" does not work
Product: Gentoo Linux Reporter: Massimo Burcheri <burcheri.massimo+bugs-gentoo>
Component: Current packagesAssignee: Thomas Deutschmann (RETIRED) <whissi>
Status: RESOLVED INVALID    
Severity: normal CC: blueness, cron-bugs+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://forums.gentoo.org/viewtopic-p-8172852.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Massimo Burcheri 2018-01-19 08:50:50 UTC
fcrondyn -x ls
does not show any part of /etc/crontab, /etc/fcron/fcrontab or /etc/cron.d, the Gentoo installation of fcron seems to ignore all those. 

The USE flag system-crontab should be responsible for that.

From my understanding in the fcron mailing lists /etc/fcron/fcrontab should be called to check /etc/crontab etc. for changes and rebuilt a systab. Currently I have my own custom systab calling all the run-parts /etc/cron.{hourly,daily,weekly,monthly}/

It is currently unclear, what fcron by default does about all these standard cron locations:

/etc/crontab
/etc/cron.d
/etc/cron.hourly
/etc/cron.daily
/etc/cron.weekly
/etc/cron.monthly
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2018-01-19 09:40:16 UTC
=================================================================
                        Package Settings
=================================================================

sys-process/fcron-3.2.1-r2::gentoo was built with the following:
USE="debug mta pam readline system-crontab -audit (-selinux)" ABI_X86="(64)" L10N="-fr"
CFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Werror=format-security -frecord-gcc-switches -ggdb"
CXXFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Werror=format-security -frecord-gcc-switches -ggdb"

vm-gentoo-x64 ~ # fcrondyn -x ls
2018-01-19 10:37:56 DEBUG   fcronconf=/etc/fcron/fcron.conf
command : ls
  uid = ALL
ID   |USER     |SCHEDULE        |CMD
2    |systab   |2018-01-19 10:40|/usr/lib64/sa/sa1 1 1
4    |systab   |2018-01-19 10:40|/usr/bin/test -x /usr/sbin/run-crons && /usr/sbin/run-crons
3    |systab   |2018-01-19 10:44|/bin/true
0    |systab   |2018-01-19 10:44|/usr/libexec/check_system_crontabs -s 0
8    |systab   |2018-01-19 11:00|/bin/rm -f /var/spool/cron/lastrun/cron.hourly
6    |systab   |2018-01-20 00:00|/bin/rm -f /var/spool/cron/lastrun/cron.weekly
7    |systab   |2018-01-20 00:00|/bin/rm -f /var/spool/cron/lastrun/cron.daily
1    |systab   |2018-01-20 00:07|/usr/lib64/sa/sa2 -A
5    |systab   |2018-02-01 00:00|/bin/rm -f /var/spool/cron/lastrun/cron.monthly

You are probably looking on a system where you never executed `emerge --config sys-process/fcron`