ChangeLog.txt 5.9 KB

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