ChangeLog.txt 7.2 KB

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