ChangeLog.txt 8.6 KB

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