X-Spam-Check-By: sourceware.org Message-ID: <20060321214505.62914.qmail@web31302.mail.mud.yahoo.com> Date: Tue, 21 Mar 2006 13:45:05 -0800 (PST) From: "Bryan D. Thomas" Subject: cygrunsrv stderr and stdout only to a syslog-ng log? To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I've found in cygrunsrv.README that the -1 and -2 arguments may be used to specify that output of stdout and stderr go to a log file instead of to the Windows Event Log. I'm using cygrunsrv to run two services: sshd and syslog-ng. I'm using syslog-ng to collect timestamped log entries from sshd and do postprocessing with filters. What I want to do is stop logging sshd events also to the Windows Event Log. Is it possible to specify in the cygrunsrv arguments to install the sshd service (I suppose by editing the ssh-host-config script) that the log events will go to syslog-ng, but will not go to the Windows Event Log? For example, if I used -1 /var/log/sshd.log and -2 /var/log/sshd.log, would that work nicely with the syslog-ng which is using those same files as a target, or would I get contention, or duplicate lines? Or, could I use -1 /dev/log -2 /dev/log and syslog-ng would pick up all the output to the unix-dgram but only enter it once in the log? Or, could I use -1 /dev/null -2 /dev/null, but syslog-ng would keep working as it is today, and only the Windows Event Log would no longer get sshd events? I also cannot tell from the documentation I've been able to find whether it is possible to change the -1 and -2 options for an installed service. Can I simply stop the service, run cygrunsrv or edit the registry, then start the service? Thanks in advance. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/