Configure stdin, stdout, and stderr depending on the windows service status.