daemonservice is an easy to use cross-platform C library for creating a *nix daemon or Windows service and minimal event logging.