ChangeLog.txt 7.1 KB

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