func InitService(serviceName string) error
InitService is the entry point for running the daemon as a Windows service. It returns an indication of whether it is running as a service; and an error.