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