Documentation ¶
Overview ¶
polldot regularly polls for the existence and contents of file. The file is expected to be offered online by a webserver.
If the file exists and contains '.' (without the quotes), a mail is sent.After sending the mail, the program exits. Never more than one mail is sent.
If the file cannot be retreived, or if it contains something else than '.', the program undertakes no action and waits for a while cycle to try again.
The URL of the file, the mail settings (To, From, mailserver, etc) and the frequency of polling for the file are configurable via a configuration file ~/.polldot.json. Program execution is logged to ~/polldot.log.
The configuration will be loaded on startup and when sending the program a SIGHUP signal. The program exits when any one of these things has happened: - the file is retreived and starts with a dot '.' - the program receives SIGINT, SIGTERM or SIGUSR1