Closed faust64 closed 8 years ago
my bad, just realizing that the package manager is not invoked on every run
Some "SELECT * FROM 'servers' WHERE 'last_checked' < NOW() - INTERVAL 2 HOUR AND....
is used defining check_patches
, didn't notice, nice.
Nevermind that one, good job.
Am I right to understand the check-in process would run apt-get every minute? On a few systems, arguably, why not. Hosting tens of VMs per physical host, you may suffer high from IO/wait.
I'm not submitting a pull request, feel free to address this or not, however you see fit, ...
Here's a first suggestion, which will take the last bit of the first IP showing up in
ip addr
, apply a%60
, then configure thecheck-in
crontab to be executed every hour:That's just an idea. I could also suggest something based on what I'm used to do, running pakiti2 on a couple setups I host aside, I have the following
/etc/cron.daily/pakiti2
:Could be relevant in your case as well, I guess.