ChangeLog.txt 6.2 KB

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