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