ChangeLog.txt 7.2 KB

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