I have updated cygrunsrv to version 1.20-1. It introduces two new command line switches and new functionality:
-O, --preshutdown Starting with Windows Vista/Longhorn, the --preshutdown option allows to terminate the service before the real shutdown takes place, giving the service up to 3 minutes for its shutdown actions. Only one of the --preshutdown/--shutdown options is allowed. If you use --preshutdown on operating systems prior to Vista/Longhorn, it will be silently converted to --shutdown at service runtime. This option could be interesting especially for services which have to do a lot of cleanup action. postgresql might be a good candidate. -z, --shutsig <signal> Optional signal to send to service application to stop the service in case of a system shutdown. This is useful if your service application wants to allow different actions to be taken on a normal service stop and on system shutdown. Note that the --shutsig option only has an effect if you use the --preshutdown or --shutdown option. The default signal on shutdown is the termination signal set with --termsig, TERM otherwise. If you have questions or comments, please send them to the Cygwin mailing list at: cygwin@cygwin.com . I would appreciate if you would use this mailing list rather than emailing me directly. This includes ideas and comments about the setup utility or Cygwin in general. If you want to make a point or ask a question the Cygwin mailing list is the appropriate place. *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe to the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/