* sending email via the script is optional
(users may already have MAILTO set in cron or monitor syslogs by email)
* only reload nginx config if the download is successful
adds compatibility for reloading Nginx on:
* Arch Linux (does not have a 'service' command)
* OpenRC (older versions do not have /sbin/service)
tested on Debian / Arch / Centos / Alpine Linux