OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • [SOLVED] cron doesn't reload new time settings with -HUP signal
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] cron doesn't reload new time settings with -HUP signal  (Read 2500 times)

html

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
[SOLVED] cron doesn't reload new time settings with -HUP signal
« 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
« Last Edit: May 10, 2017, 03:43:46 pm by franco »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1173
    • View Profile
Re: cron doesn't reload new time settings with -HUP signal
« Reply #1 on: May 09, 2017, 08:13:19 am »
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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • [SOLVED] cron doesn't reload new time settings with -HUP signal
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2