way to refresh crond
Isaac Dunham
ibid.ag at gmail.com
Tue Jan 26 02:59:39 UTC 2016
On Mon, Jan 25, 2016 at 03:52:50PM -0500, David Henderson wrote:
> Good afternoon everyone! Still working with crond and was interested
> in seeing if the BB crond had a way to 'refresh' it without killing it
> and restarting so any time adjustments will be picked up. I tried
> doing a SIGHUP kill call, but that doesn't appear to work... Any help
> would be appreciated!
You cannot reset the timezone in a running process without a bit of
hackery in the source.
(It might be possible to use ptrace()/gdb to do it somehow, but I'm
not familiar with how, and it's certainly ugly.)
If you reset the clock time, crond should pick up the new time, sleep
a while if it went backwards, and continue.
HTH,
Isaac Dunham
More information about the busybox
mailing list