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 Date: Sun, 22 May 2005 18:39:08 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [patch] several new features for cygrunsrv Message-ID: <20050522163908.GA20712@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <428CE837 DOT C00E288B AT dessent DOT net> <20050519203046 DOT GH2794 AT calimero DOT vinschen DOT de> <428FE303 DOT A897C7B3 AT dessent DOT net> <20050522131044 DOT GS2794 AT calimero DOT vinschen DOT de> <4290A364 DOT B873795D AT dessent DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4290A364.B873795D@dessent.net> User-Agent: Mutt/1.4.2i On May 22 08:21, Brian Dessent wrote: > * cygrunsrv.cc: Add includes. > (longopts): Add '--list' and '--verbose' options. > (opts): Add '-L' and '-V' options; keep order consistent with above. > (action_t): Add 'List'. > (err_out_set_error): Define version of 'err_out' macro that allows for > convenient setting the error code. > (get_description): New function. > (check_system_mounts): Ditto. > (install_service): Check mounts and warn if problem found. Use > 'err_out_set_error' throughout. > (start_service): Ditto. > (stop_service): Ditto. > (ServiceType_desc): Add. Use structs to map DWORD fields onto strings. > (StartType_desc): Ditto. > (CurrentState_desc): Ditto. > (ControlsAccepted_desc): Ditto. > (make_desc): Add new function that generalizes the task of creating > a textual field from a binary DWORD. > (serviceTypeToString): Remove. > (serviceStateToString): Ditto. > (controlsToString): Ditto. > (parsedoublenull): Add new helper function for parsing lists of > strings, which is used below when printing the 'lpDependencies' value. > (print_service): Add new function that is responsible for generating > the formatted output for --list and --query commands. > (QSC_BUF_SIZE): Add. > (query_service): Add verbosity parameter. Remove printf output from > here, call 'print_service' instead. Call QueryServiceConfig to > retrieve more detail on the service. > (same_filename): New function. > (list_services): Add new function that implements -L,--list command. > Call EnumServicesStatus to get names of all services, and then > determine which ones are cygrunsrv services. List their names, or > call print_service() if verbosity was requested. > (main): Declare new variable 'verbosity'. Support new command line > switches. Pass on verbosity information to query_service and > list_services. > * utils.cc (reason_list): Update error text. > (usage): Document new switches in the help text. > * utils.h (reason_t): Add new symbolic name for error text. > * cygrunsrv.README: Update documentation for new flags and mount > information. Thank you very much. I've applied the patch, bumped the version to 1.10 and uploaded the new 1.10-1 package to cygwin.com. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/