ChangeLog.txt 5.6 KB

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