2004-04-07  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.cc: Bump version to 0.99.

2004-04-07  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.README: Add description for -j, --nohide option.
	* cygrunsrv.cc (longopts): Add '--nohide' option.
	(opts): Add -j option.
	(showcons): New global variable.
	(install_registry_keys): Add 'showcons' parameter.  Write it to
	registry.
	(get_reg_entries): Add 'showcons_p' parameter.  Read it from registry.
	(hide_console): New function.
	(service_main): Call hide_console if showcons is 0.
	(main): Add handling for '--nohide' parameter.  Fix indentation.
	* cygrunsrv.h (PARAM_SHOWCONS): New registry name for nohide parameter.
	* utils_cc (reason_list): Add error strings for --nohide.
	* (usage): Add help text for --nohide option.  Fix output to fit in
	80 columns.
	* utils.h (reason_t): Add error codes for --nohide errors.

2004-03-18  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* cygrunsrv.cc (service_main): Fix typo in comment.
	(main): Check that "--user" is not specified with
	"--interactive" (thanks to Peter Wisnovsky).
	* utils.h (reason_t): Add NoInteractiveWithUser value.
	* utils.cc (reason_list): Add description string for the
	NoInteractiveWithUser value.  Fix typos in descriptions
	for the NeverExitsNotAllowed and OnlyOneNeverExits values.
	* cygrunsrv.README: Add comment about the "--interactive"
	option only being valid with a SYSTEM service.

2004-03-17  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.cc (service_main): Set exit_status to 1 by default.
	Terminate service correctly if child terminated as a result of
	cygrunsrv's signal.

2004-03-17  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.cc (termsig_sent): New variable;
	(terminate_child): Set termsig_sent right before sending the signal.
	(service_main): If the child terminated due to a signal, only log
	error in case it wasn't our own termination signal.

2004-03-13  Corinna Vinschen <corinna@vinschen.de>

	Thanks to Tony Silva <tony_silva@alum.mit.edu>:
	* utils.cc (usage): Fix typo in help message.

2004-02-04  Corinna Vinschen <corinna@vinschen.de>

	* Bump version to 0.98.

2004-01-30  Ben Hochstedler  <hochstrb@cs.rose-hulman.edu>

	* cygrunsrv.cc (get_reg_entries): Add neverexits entry. 
	(install_registry_keys): Add neverexits entry.
	(service_main): Add better error handling of child exit.
	If neverexits is set, it will only report SERVICE_STOPPED if
	cygrunsrv itself is shutting down.
	* cygrunsrv.h (PARAM_NEVEREXITS): Add for neverexits option.
	* utils.cc (usage): Add neverexits option.
	* utils.h (reason_t): Add errors for neverexits option.
	* cygrunsrv.README: Add a description for the --neverexits option.

2003-12-07  Corinna Vinschen <corinna@vinschen.de>

	* Makefile.in: Fix typo.

2003-12-07  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.cc (version): Fix copyright date.

2003-12-07  Corinna Vinschen <corinna@vinschen.de>

	* Bump version to 0.97.
	* Makefile.in:  Add uninstall targets.  Refine install targets.
	Add dependencies to Makefile.in and configure.  Rebuild Makefile
	and configure if necessary.
	* configure.in: Fix tests for CFLAGS and CXXFLAGS.
	* configure: Regenerate.
	* cygrunsrv.cc (service_main): Set childs process group to its own pid.

2003-12-05  Brian Ford  <ford@vss.fsi.com>

	* cygrunsrv.cc (terminate_child): Send the signal to the whole
	processes group.

2003-11-24  Corinna Vinschen <corinna@vinschen.de>

	* Makefile.in: Add target "all".

2003-11-24  Corinna Vinschen <corinna@vinschen.de>

	Autotoolize.
	* Makefile: Remove.
	* Makefile.in: New file.
	* config.guess: New file.
	* config.sub: New file.
	* configure: New file.
	* configure.in: New file.
	* install-sh: New file.

2003-08-15  Corinna Vinschen <corinna@vinschen.de>

	* Makefile: Adhere to FHS.

2003-05-09  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* cygrunsrv.cc (opts): Expand to have each option
	string on a separate line.

2003-05-09  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* cygrunsrv.h (STRINGIFY): New macro.
	(STRINGIFY_): New helper macro.
	(MAX_ENV_STR, MAX_DEPS_STR): Fix redundant string constants.

2003-05-08  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* crit.cc (set_service_controls_accepted): Add an
	interactive_process parameter.
	* crit.h (set_service_controls_accepted): Ditto.
	* cygrunsrv.cc (longopts, opts): Add an "--interactive" option.
	(interactive): New global variable.
	(install_registry_keys): Add an interactive parameter.
	(get_reg_entries): Add an interactive_p parameter.
	(install_service): Add an interactive parameter.
	(service_main): Pass the interactive flag to get_reg_entries and
	set_service_controls_accepted.
	(main): Process the "--interactive" flag.
	* cygrunsrv.cc (PARAM_INTERACT): New registry key.
	* utils.h (reason_t): Add InteractiveNotAllowed and OnlyOneInteractive
	values.
	* utils.cc (reason_list): Add description strings for the
	InteractiveNotAllowed and OnlyOneInteractive values.
	(usage): Add description of the "--interactive" option.
	* cygrunsrv.README: Add description of the "--interactive" option.

2003-04-24  Corinna Vinschen <corinna@vinschen.de>

	* Bump version to 0.96.
	* Makefile: Link using g++, not gcc.
	* util.cc (error): Remove errouneous default value from second
	parameter.

2002-03-08  Mike Gerdts <Michael.Gerdts@alcatel.com>

	* utils.h (reason_t): Add code for --query errors.
	* utils.cc (reason_list): Add error string for --query errors.
	(usage): Add help text for --query parameter.
	* cygrunsrv.cc (longopts): Add --query parameter.
	(opts): Add -Q option.
	(main): Add handling --query parameter.
	(serviceTypeToString): New function to support --query parameter.
	(serviceStateToString): Ditto.
	(serviceStateToString): Ditto.
	(controlsToString): Ditto.
	(query_service): Ditto.

2002-02-26  Corinna Vinschen <corinna@vinschen.de>

	* Bump version to 0.95.

2002-02-24  Karl Moerder <karlm30@hotmail.com>

	* utils.h (reason_t): Add codes for --desc errors.
	* utils_cc (reason_list): Add error strings for --desc.
	* (usage): Add help text for --desc option.
	* cygrunsrv.h (DESC): New registry name for description parameter.
	* cygrunsrv.cc (longopts): Add '--desc' option.
	* (opts): Add '-f option.
	* (install_registry_keys): Add 'desc' parameter, and
	writing parameter to registry.
	* (main): Add handling for '--desc' parameter.

2001-10-29  Corinna Vinschen <corinna@vinschen.de>

	Inspired by Pierre A. Humblet <Pierre.Humblet@ieee.org>:
	* cygrunsrv.README: Add hint that user needs 'Logon as a service'
	privilege.

2001-10-23  Corinna Vinschen <corinna@vinschen.de>

	Inspired by Robert Collins <robert.collins@itdomain.com.au>:
	* cygrunsrv.README: Add suggestion of dependency on Tcpip.

2001-10-22  Fred Yankowski  <fred@ontosys.com>

	* cygrunsrv.README: Suggest dependency on LanmanWorkstation.

2001-10-19  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.cc (install_registry_keys): Fix setting working directory.

2001-07-11  Corinna Vinschen <corinna@vinschen.de>

	* Bump version to 0.94.

2001-06-28  Fred Yankowski  <fred@ontosys.com>

	* cygrunsrv.README: Describe --shutdown option.  Adjust postgresql
	example.

2001-06-15  Fred Yankowski  <fred@ontosys.com>

	* utils.h (reason_t): Add codes for --shutdown errors.
	* utils.cc (reason_list): Add error strings for --shutdown.
	(usage): Add help text for --shutdown option.
	* cygrunsrv.h (PARAM_SHUTDOWN): New registry name for shutdown
	parameter.
	* cygrunsrv.cc (longopts): Add '--shutdown' option.
	(opts): Add '-o' option.
	(shutdown): Define new global.
	(install_registry_keys): Add 'shutdown' parameter, and writing
	parameter to registry.
	(get_reg_entries): Add 'shutdown_p' parameter and reading
	parameter from registry.
	(service_handler): Case for SERVICE_CONTROL_SHUTDOWN control.
	(service_main): Set global 'shutdown' parameter, and call
	set_service_controls_accepted.
	(main): Add handling for '--shutdown' parameter.
	* crit.h (set_service_controls_accepted): Declare new function.
	* crit.cc (set_service_controls_accepted): New function.

2001-05-31  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.cc (longopts): Add `--chdir' option.
	(opts): Add `-c' option.
	(version): Add Fred to the version info.
	(install_registry_keys): Add `dir' parameter. Add writing dir to
	the registry.
	(get_reg_entries): Add `dir' parameter. Add reading dir from the
	registry.
	(service_main): Change working directory in child before exec'ing
	the application. Free more unused memory.
	(main): Add handling for `--chdir' option.
	* cygrunsrv.h (PARAM_DIR): New registry name for working directory.
	* utils.cc (reason_list): Add error strings for --chdir errors.
	(usage): Add help text for --chdir option.
	* utils.h (reason_t): Add codes for --chdir errors.

2001-05-23  Corinna Vinschen <corinna@vinschen.de>

	* Makefile: Change install target to install into $DESTDIR and
	to install also cygrunsrv.README.

2001-05-23  Charles S. Wilson  <cwilson@ece.gatech.edu>

	* cygrunsrv.README: New file.

2001-05-22  Corinna Vinschen <corinna@vinschen.de>

	* TODO: New file.

2001-05-22  Fred Yankowski  <fred@ontosys.com>

	* cygrunsrv.cc (eval_arglist): Fix handling of quoted options.

2001-05-21  Corinna Vinschen <corinna@vinschen.de>

	* Bump version to 0.93.

2001-05-21  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.cc (longopts): Add `--stdin', `--stdout' and `--stderr'
	options.
	(opts): Add `-0', `-1' and `-2' options.
	(install_registry_keys): Add handling for stdio redirection file names.
	(get_reg_entries): Ditto.
	(service_main): Ditto.
	(get_opt_string_entry): New function.
	(reeval_io_path): Ditto.
	(main): Add handling for stdio redirection options.
	* cygrunsrv.h (PARAM_STDIN): New registry name for stdin redirection
	file name.
	(PARAM_STDOUT): Ditto for stdout.
	(PARAM_STDERR): Ditto for stderr.
	(DEF_STDIN_PATH): New define, default path for stdin redirection.
	(DEF_LOG_PATH): New define, default directory where log files are
	written.
	* utils.cc (reason_list): Add error strings for --std{in,out,err}
	errors.
	(usage): Add help text for --std{in,out,err}.
	(redirect_fd): New function.
	(redirect_io): Ditto.
	(create_parent_directory): Ditto.
	* utils.h (reason_t): Add codes for --std{in,out,err} errors.
	Add declaration for new functions.

2001-05-21  Corinna Vinschen <corinna@vinschen.de>

	* utils.cc (usage): Change --dep text slightly.

2001-05-21  Fred Yankowski  <fred@ontosys.com>

	* utils.cc (reason_list): Add error strings for --dep errors.
	(usage): Add help text for --dep.
	* utils.h (reason_t): Add codes for --dep errors.
	* cygrunsrv.h (MAX_DEPS): Number of --dep values allowed.
	(MAX_DEPS_STR): String value of MAX_DEPS.
	* cygrunsrv.cc (install_service): Create service with optional
	dependencies.
	(add_dep): New function to save --dep command-line value.
	(main): Handle --dep option.
	(longopts): Add '--dep' option.
	(opts): Add 'y' option.

2001-05-21  Corinna Vinschen <corinna@vinschen.de>

	* cygrunsrv.cc (install_registry_keys): Create environment strings in
	subkey "Environment" now.
	(get_reg_entries): Read environment strings from subkey "Environment"
	now.
	(add_env_var): Drop test for illegal environment string names
	"AppPath" and "AppArgs".
	* cygrunsrv.h (PARAM_ENVIRON): New registry name for environment
	string subkey.

2001-05-18  Fred Yankowski  <fred@ontosys.com>

	* utils.cc (usage): Add help for --termsig option.
	(reason_list):  Add error strings for wrong --termsig usage.
	* cygrunsrv.cc (get_reg_entries): Get --termsig value from registry.
	(service_main): Set up global termsig value.
	(terminate_child): Send termsig signal to server process.
	(termsig):  Create new global variable to hold --termsig value.
	(install_registry_keys): Save --termsig value.
	(longopts): Add '--termsig' option.
	(opts): Add 's' option.
	(main): Handle '--termsig' option.
	* cygrunsrv.h (PARAM_TERMSIG): New registry name for --termsig value.
	* utils.h (reason_t): Add codes for '--termsig' errors.

2001-05-11  Corinna Vinschen <corinna@vinschen.de>

	* utils.cc: New file. Move several functions from cygrunsrv.cc to here.
	* utils.h: Ditto.
	(reason_t): Add error codes for wrong --type usage.
	* utils.cc (winerror): New function providing strerror functionality for
	Win32 errors.
	(reason_list): Add error strings for wrong --type usage.
	(error): Add windows error message text to error output.
	(syslog_starterr): New function.
	* cygrunsrv.cc (longopts): Add `--type' option.
	(opts): Add `t' option.
	(type_t): New type.
	(usage): Add help for `--type' option.
	(install_service): Add parameter for service start type.
	(service_main): Use syslog_starterr function.
	(main): Add handling for `--type' option.
	* Bump version to 0.92.

2001-05-10  Corinna Vinschen <corinna@vinschen.de>

	* (get_reg_entries): Fix memory usage.
	* (install_service): Add interactive password request if password
	is omitted.
	* Control access to SERVICE_STATUS by using a critical section.
	Move access functions to new file crit.cc. Declare access functions
	in crit.h.
	* Bump version to 0.91.

2001-05-09  Corinna Vinschen <corinna@vinschen.de>

	* Initial version 0.9.
