This blog post has been changed to clarify the context for why daemonization is in use (the service is very old, meaning it predates systemd) and also gives an even more simple sample program that illustrates the underlying issue without use of daemonization or syslog.