Very simple daemon, written in C, to monitor a UPS via serial port in Unix, and issue the shutdown command after a power-loss of a specific durat…