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