On Wed, Jul 10, 2019 at 10:44 AM Tim via users
<users@lists.fedoraproject.org> wrote:
>
> My original re.local file had a string of commands like:
>
> su tim -c "/usr/bin/fetchmail -d 900"
> su adam -c "/usr/bin/fetchmail -d 1200"
> su eve -c "/usr/bin/fetchmail -d 1500"
>
> Each with a different delay, so that traffic was staggered.

There's be a cleaner way to do it, but you may be able to do something
like this:

ExecStart=/usr/bin/fetchmail -d $((600 + RANDOM % 1800))

(Or wrap your fetchmail call in a script if systemd doesn't like
that). It won't be a predictable delay, but it should spread the load
around well enough for your purposes.

-- 
Ben Cotton
He / Him / His
Fedora Program Manager
Red Hat
TZ=America/Indiana/Indianapolis
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to