3 * Allow skipping kill_process_tree().
\r
5 * NSSM can now sleep a configurable amount of time after
\r
6 rotating output files.
\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
14 * NSSM once again calls TerminateProcess() correctly.
\r
18 * NSSM no longer clutters the event log with "The specified
\r
19 procedure could not be found" on legacy Windows releases.
\r
21 * Fixed failure to set a local username to run the service.
\r
25 * Existing services can now be managed using the GUI
\r
26 or on the command line.
\r
28 * NSSM can now set the priority class and processor
\r
29 affinity of the managed application.
\r
31 * NSSM can now apply an unconditional delay before
\r
32 restarting the application.
\r
34 * NSSM can now optionally rotate existing files when
\r
37 * Unqualified path names are now relative to the
\r
38 application startup directory when redirecting I/O.
\r
40 * NSSM can now set the service display name, description,
\r
41 startup type and log on details.
\r
43 * All services now receive a standard console window,
\r
44 allowing them to read input correctly (if running in
\r
49 * Services installed from the GUI no longer have incorrect
\r
50 AppParameters set in the registry.
\r
54 * Services installed from the commandline without using the
\r
55 GUI no longer have incorrect AppStopMethod* registry
\r
60 * Support AppEnvironmentExtra to append to the environment
\r
61 instead of replacing it.
\r
63 * The GUI is significantly less sucky.
\r
67 * Timeouts for each shutdown method can be configured in
\r
70 * The GUI is slightly less sucky.
\r
74 * NSSM can now redirect the service's I/O streams to any path
\r
75 capable of being opened by CreateFile().
\r
77 * Allow building on Visual Studio Express.
\r
79 * Silently ignore INTERROGATE control.
\r
81 * Try to send Control-C events to console applications when
\r
86 * Fixed case where NSSM could kill unrelated processes when
\r
91 * NSSM is now translated into Italian.
\r
93 * Fixed GUI not allowing paths longer than 256 characters.
\r
97 * Fixed default GUI language being French not English.
\r
101 * Fixed failure to run on Windows 2000.
\r
105 * NSSM is now translated into French.
\r
107 * Really ensure systems recovery actions can happen.
\r
109 The change supposedly introduced in v2.4 to allow service recovery
\r
110 actions to be activated when the application exits gracefully with
\r
111 a non-zero error code didn't actually work.
\r
115 * Support AppEnvironment for compatibility with srvany.
\r
119 * Fixed failure to compile messages.mc in paths containing spaces.
\r
121 * Fixed edge case with CreateProcess().
\r
123 Correctly handle the case where the application executable is under
\r
124 a path which contains space and an executable sharing the initial
\r
125 part of that path (up to a space) exists.
\r
129 * Fixed failure to run on Windows versions prior to Vista.
\r
133 * Read Application, AppDirectory and AppParameters before each restart so
\r
134 a change to any one doesn't require restarting NSSM itself.
\r
136 * Fixed messages not being sent to the event log correctly in some
\r
139 * Try to handle (strictly incorrect) quotes in AppDirectory.
\r
141 Windows directories aren't allowed to contain quotes so CreateProcess()
\r
142 will fail if the AppDirectory is quoted. Note that it succeeds even if
\r
143 Application itself is quoted as the application plus parameters are
\r
144 interpreted as a command line.
\r
146 * Fixed failed to write full arguments to AppParameters when
\r
147 installing a service.
\r
149 * Throttle restarts.
\r
151 Back off from restarting the application immediately if it starts
\r
152 successfully but exits too soon. The default value of "too soon" is
\r
153 1500 milliseconds. This can be configured by adding a DWORD value
\r
154 AppThrottle to the registry.
\r
156 Handle resume messages from the service console to restart the
\r
157 application immediately even if it is throttled.
\r
159 * Try to kill the process tree gracefully.
\r
161 Before calling TerminateProcess() on all processes assocatiated with
\r
162 the monitored application, enumerate all windows and threads and
\r
163 post appropriate messages to them. If the application bothers to
\r
164 listen for such messages it has a chance to shut itself down gracefully.
\r
168 * Handle missing registry values.
\r
170 Warn if AppParameters is missing. Warn if AppDirectory is missing or
\r
171 unset and choose a fallback directory.
\r
172 First try to find the parent directory of the application. If that
\r
173 fails, eg because the application path is just "notepad" or something,
\r
174 start in the Windows directory.
\r
176 * Kill process tree when stopping service.
\r
178 Ensure that all child processes of the monitored application are
\r
179 killed when the service stops by recursing through all running
\r
180 processes and terminating those whose parent is the application
\r
181 or one of its descendents.
\r
185 * Removed incorrect ExpandEnvironmentStrings() error.
\r
187 A log_event() call was inadvertently left in the code causing an error
\r
188 to be set to the eventlog saying that ExpandEnvironmentStrings() had
\r
189 failed when it had actually succeeded.
\r
193 * Allow use of REG_EXPAND_SZ values in the registry.
\r
195 * Don't suicide on exit status 0 by default.
\r
197 Suiciding when the application exits 0 will cause recovery actions to be
\r
198 taken. Usually this is inappropriate. Only suicide if there is an
\r
199 explicit AppExit value for 0 in the registry.
\r
201 Technically such behaviour could be abused to do something like run a
\r
202 script after successful completion of a service but in most cases a
\r
203 suicide is undesirable when no actual failure occurred.
\r
205 * Don't hang if startup parameters couldn't be determined.
\r
206 Instead, signal that the service entered the STOPPED state.
\r
207 Set START_PENDING state prior to actual startup.
\r
211 * Ensure systems recovery actions can happen.
\r
213 In Windows versions earlier than Vista the service manager would only
\r
214 consider a service failed (and hence eligible for recovery action) if
\r
215 the service exited without setting its state to SERVICE_STOPPED, even if
\r
216 it signalled an error exit code.
\r
217 In Vista and later the service manager can be configured to treat a
\r
218 graceful shutdown with error code as a failure but this is not the
\r
221 Try to configure the service manager to use the new behaviour when
\r
222 starting the service so users who set AppExit to Exit can use recovery
\r
223 actions as expected.
\r
225 Also recognise the new AppExit option Suicide for use on pre-Vista
\r
226 systems. When AppExit is Suicide don't stop the service but exit
\r
227 inelegantly, which should be seen as a failure.
\r
231 * Send properly formatted messages to the event log.
\r
233 * Fixed truncation of very long path lengths in the registry.
\r
237 * Decide how to handle application exit.
\r
239 When the service exits with exit code n look in
\r
240 HKLM\SYSTEM\CurrentControlSet\Services\<service>\Parameters\AppExit\<n>,
\r
241 falling back to the unnamed value if no such code is listed. Parse the
\r
242 (string) value of this entry as follows:
\r
244 Restart: Start the application again (NSSM default).
\r
245 Ignore: Do nothing (srvany default).
\r
246 Exit: Stop the service.
\r
250 * Added support for building a 64-bit executable.
\r
252 * Added project files for newer versions of Visual Studio.
\r