ChangeLog.txt 7.3 KB

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