X-Spam-Check-By: sourceware.org Message-ID: <438E4E72.BA397B15@dessent.net> Date: Wed, 30 Nov 2005 17:14:26 -0800 From: Brian Dessent MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Syslog "event source" registration [Was Re: Suggest cygrunsrv extension: --pidfile option (patch included)] References: <4380AB2E DOT 7010302 AT t-online DOT de> <20051121153016 DOT GI2999 AT calimero DOT vinschen DOT de> <438221C6 DOT 1080103 AT t-online DOT de> <20051122095442 DOT GL2999 AT calimero DOT vinschen DOT de> <4384E07F DOT 6000308 AT t-online DOT de> <20051124113107 DOT GC2999 AT calimero DOT vinschen DOT de> <1EfHhO-1i3eWO0 AT fwd33 DOT aul DOT t-online DOT de> <4385CE09 DOT D2DAB8AF AT dessent DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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 Igor Pechtchanski wrote: > Why complicate openlog()? Let the Cygwin applications that use openlog() > do this (e.g., in a postinstall script). We could even add a utility > package in "Base", similar to "editrights", that contains scripts for > adding and removing this setting (something like 'regtool add > "KEY/$1/VAL"; regtool set "KEY/$1/VAL" "value"') that the postinstall and > preremove scripts can invoke... That way this would also be cleaned up > if, say, "openssh" were uninstalled. That is certainly a reasonable alternative. Though it's slightly less automatic since it requires every package maintainer of any program that writes to the event log to do something in a postinstall (and presumably preremove) script. But if it were turnkey to the point of being able to just run "add-event-source sshd" in a postinstall, then it wouldn't be too much hassle, and the user could even do it manually if necessary. Brian -- 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/