OPNsense Forum
Archive => 17.1 Legacy Series => Topic started by: html on May 08, 2017, 06:17:22 pm
-
During my tests with the rc.update_bogons script i realized that cron does not reload new time settings with kill -s HUP (cron pid). As descriped in the cron manpage changing the modification time of the spool directory /var/cron/tabs does the trick. No HUP Signal needed.
As far as i can see, the cron entries are generated with php from the system.inc file followed be a HUP signal for cron. This might be a problem. The modification time of the cron spool directory should be changed.
Cheers,
Helmut
-
Hi Helmut,
Your analysis is correct. I changed this a bit as our new MVC cron service was already restarting cron correctly (and privilege-separated), so we don't need the HUP or the touch.
https://github.com/opnsense/core/commit/9c88e64
Cheers,
Franco