ChangeLog.txt 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. Changes since 2.16
  2. -----------------
  3. * Allow building on Visual Studio Express.
  4. * Silently ignore INTERROGATE control.
  5. * Try to send Control-C events to console applications when
  6. shutting them down.
  7. Changes since 2.15
  8. -----------------
  9. * Fixed case where NSSM could kill unrelated processes when
  10. shutting down.
  11. Changes since 2.14
  12. -----------------
  13. * NSSM is now translated into Italian.
  14. * Fixed GUI not allowing paths longer than 256 characters.
  15. Changes since 2.13
  16. -----------------
  17. * Fixed default GUI language being French not English.
  18. Changes since 2.12
  19. -----------------
  20. * Fixed failure to run on Windows 2000.
  21. Changes since 2.11
  22. -----------------
  23. * NSSM is now translated into French.
  24. * Really ensure systems recovery actions can happen.
  25. The change supposedly introduced in v2.4 to allow service recovery
  26. actions to be activated when the application exits gracefully with
  27. a non-zero error code didn't actually work.
  28. Changes since 2.10
  29. -----------------
  30. * Support AppEnvironment for compatibility with srvany.
  31. Changes since 2.9
  32. -----------------
  33. * Fixed failure to compile messages.mc in paths containing spaces.
  34. * Fixed edge case with CreateProcess().
  35. Correctly handle the case where the application executable is under
  36. a path which contains space and an executable sharing the initial
  37. part of that path (up to a space) exists.
  38. Changes since 2.8
  39. -----------------
  40. * Fixed failure to run on Windows versions prior to Vista.
  41. Changes since 2.7
  42. -----------------
  43. * Read Application, AppDirectory and AppParameters before each restart so
  44. a change to any one doesn't require restarting NSSM itself.
  45. * Fixed messages not being sent to the event log correctly in some
  46. cases.
  47. * Try to handle (strictly incorrect) quotes in AppDirectory.
  48. Windows directories aren't allowed to contain quotes so CreateProcess()
  49. will fail if the AppDirectory is quoted. Note that it succeeds even if
  50. Application itself is quoted as the application plus parameters are
  51. interpreted as a command line.
  52. * Fixed failed to write full arguments to AppParameters when
  53. installing a service.
  54. * Throttle restarts.
  55. Back off from restarting the application immediately if it starts
  56. successfully but exits too soon. The default value of "too soon" is
  57. 1500 milliseconds. This can be configured by adding a DWORD value
  58. AppThrottle to the registry.
  59. Handle resume messages from the service console to restart the
  60. application immediately even if it is throttled.
  61. * Try to kill the process tree gracefully.
  62. Before calling TerminateProcess() on all processes assocatiated with
  63. the monitored application, enumerate all windows and threads and
  64. post appropriate messages to them. If the application bothers to
  65. listen for such messages it has a chance to shut itself down gracefully.
  66. Changes since 2.6
  67. -----------------
  68. * Handle missing registry values.
  69. Warn if AppParameters is missing. Warn if AppDirectory is missing or
  70. unset and choose a fallback directory.
  71. First try to find the parent directory of the application. If that
  72. fails, eg because the application path is just "notepad" or something,
  73. start in the Windows directory.
  74. * Kill process tree when stopping service.
  75. Ensure that all child processes of the monitored application are
  76. killed when the service stops by recursing through all running
  77. processes and terminating those whose parent is the application
  78. or one of its descendents.
  79. Changes since 2.5
  80. -----------------
  81. * Removed incorrect ExpandEnvironmentStrings() error.
  82. A log_event() call was inadvertently left in the code causing an error
  83. to be set to the eventlog saying that ExpandEnvironmentStrings() had
  84. failed when it had actually succeeded.
  85. Changes since 2.4
  86. -----------------
  87. * Allow use of REG_EXPAND_SZ values in the registry.
  88. * Don't suicide on exit status 0 by default.
  89. Suiciding when the application exits 0 will cause recovery actions to be
  90. taken. Usually this is inappropriate. Only suicide if there is an
  91. explicit AppExit value for 0 in the registry.
  92. Technically such behaviour could be abused to do something like run a
  93. script after successful completion of a service but in most cases a
  94. suicide is undesirable when no actual failure occurred.
  95. * Don't hang if startup parameters couldn't be determined.
  96. Instead, signal that the service entered the STOPPED state.
  97. Set START_PENDING state prior to actual startup.
  98. Changes since 2.3
  99. -----------------
  100. * Ensure systems recovery actions can happen.
  101. In Windows versions earlier than Vista the service manager would only
  102. consider a service failed (and hence eligible for recovery action) if
  103. the service exited without setting its state to SERVICE_STOPPED, even if
  104. it signalled an error exit code.
  105. In Vista and later the service manager can be configured to treat a
  106. graceful shutdown with error code as a failure but this is not the
  107. default behaviour.
  108. Try to configure the service manager to use the new behaviour when
  109. starting the service so users who set AppExit to Exit can use recovery
  110. actions as expected.
  111. Also recognise the new AppExit option Suicide for use on pre-Vista
  112. systems. When AppExit is Suicide don't stop the service but exit
  113. inelegantly, which should be seen as a failure.
  114. Changes since 2.2
  115. -----------------
  116. * Send properly formatted messages to the event log.
  117. * Fixed truncation of very long path lengths in the registry.
  118. Changes since 2.1
  119. -----------------
  120. * Decide how to handle application exit.
  121. When the service exits with exit code n look in
  122. HKLM\SYSTEM\CurrentControlSet\Services\<service>\Parameters\AppExit\<n>,
  123. falling back to the unnamed value if no such code is listed. Parse the
  124. (string) value of this entry as follows:
  125. Restart: Start the application again (NSSM default).
  126. Ignore: Do nothing (srvany default).
  127. Exit: Stop the service.
  128. Changes since 2.0
  129. -----------------
  130. * Added support for building a 64-bit executable.
  131. * Added project files for newer versions of Visual Studio.