ChangeLog.txt 6.5 KB

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