Stuart Henderson <[email protected]> wrote: > > 30 5 1 * * /bin/sh /etc/monthly > > #0 * * * * sleep $((RANDOM \% 2048)) && > > /usr/libexec/spamd-setup > > > > -#0 9 * * * -n sleep $((RANDOM \% 4096)) && > > rpki-client -v && bgpctl reload > > +#0 * * * * -n sleep $((RANDOM \% 4096)) && > > rpki-client -v && bgpctl reload > > > > The max sleep value will definitely need to be lowered (4096 > 1 hour), > but it might also be necessary to add some locking to prevent multiple copies > running ..
I hate it. I've always hated the sleep thing in cron also. It is so horrific. It sounds like rpki-client needs a long-running mode where it makes it's own decisions, without having to use cron in this way.
