On Sat, 2016-09-17 at 19:20 +0100, RW wrote:
> On Sat, 17 Sep 2016 11:52:16 +0200
> Marcus Schopen wrote:
> > 
> > Thanks! But then in sa-update-hock.d dir in my case mimedefang
> > would
> > be reloaded after each channel update instead of one recompile and
> > one
> > reload after all updates finished.
> I think you'd have to write your own script. Just keep track of
> the return codes from the various invocations of sa-update and
> recompile/restart at the end of the script.
The OP could also run the various updates as separate cronjobs. Each
would set a flag, i.e. create a file to indicate a successful update,
on completion. If the flag is already set it would not touch it.

A final cronjob, timed for 30 mins or so later, would do the recompile
and restart if the flag was set and then unset it.
That should keep the scripts simple (only one task per script) while
still only doing a single recompile/restart if at least one update was


Reply via email to