3 * Existing services can now be managed using the GUI
4 or on the command line.
6 * NSSM can now set the priority class and processor
7 affinity of the managed application.
9 * NSSM can now apply an unconditional delay before
10 restarting the application.
12 * NSSM can now optionally rotate existing files when
15 * Unqualified path names are now relative to the
16 application startup directory when redirecting I/O.
18 * NSSM can now set the service display name, description,
19 startup type and log on details.
23 * Services installed from the GUI no longer have incorrect
24 AppParameters set in the registry.
28 * Services installed from the commandline without using the
29 GUI no longer have incorrect AppStopMethod* registry
34 * Support AppEnvironmentExtra to append to the environment
35 instead of replacing it.
37 * The GUI is significantly less sucky.
41 * Timeouts for each shutdown method can be configured in
44 * The GUI is slightly less sucky.
48 * NSSM can now redirect the service's I/O streams to any path
49 capable of being opened by CreateFile().
51 * Allow building on Visual Studio Express.
53 * Silently ignore INTERROGATE control.
55 * Try to send Control-C events to console applications when
60 * Fixed case where NSSM could kill unrelated processes when
65 * NSSM is now translated into Italian.
67 * Fixed GUI not allowing paths longer than 256 characters.
71 * Fixed default GUI language being French not English.
75 * Fixed failure to run on Windows 2000.
79 * NSSM is now translated into French.
81 * Really ensure systems recovery actions can happen.
83 The change supposedly introduced in v2.4 to allow service recovery
84 actions to be activated when the application exits gracefully with
85 a non-zero error code didn't actually work.
89 * Support AppEnvironment for compatibility with srvany.
93 * Fixed failure to compile messages.mc in paths containing spaces.
95 * Fixed edge case with CreateProcess().
97 Correctly handle the case where the application executable is under
98 a path which contains space and an executable sharing the initial
99 part of that path (up to a space) exists.
103 * Fixed failure to run on Windows versions prior to Vista.
107 * Read Application, AppDirectory and AppParameters before each restart so
108 a change to any one doesn't require restarting NSSM itself.
110 * Fixed messages not being sent to the event log correctly in some
113 * Try to handle (strictly incorrect) quotes in AppDirectory.
115 Windows directories aren't allowed to contain quotes so CreateProcess()
116 will fail if the AppDirectory is quoted. Note that it succeeds even if
117 Application itself is quoted as the application plus parameters are
118 interpreted as a command line.
120 * Fixed failed to write full arguments to AppParameters when
121 installing a service.
125 Back off from restarting the application immediately if it starts
126 successfully but exits too soon. The default value of "too soon" is
127 1500 milliseconds. This can be configured by adding a DWORD value
128 AppThrottle to the registry.
130 Handle resume messages from the service console to restart the
131 application immediately even if it is throttled.
133 * Try to kill the process tree gracefully.
135 Before calling TerminateProcess() on all processes assocatiated with
136 the monitored application, enumerate all windows and threads and
137 post appropriate messages to them. If the application bothers to
138 listen for such messages it has a chance to shut itself down gracefully.
142 * Handle missing registry values.
144 Warn if AppParameters is missing. Warn if AppDirectory is missing or
145 unset and choose a fallback directory.
146 First try to find the parent directory of the application. If that
147 fails, eg because the application path is just "notepad" or something,
148 start in the Windows directory.
150 * Kill process tree when stopping service.
152 Ensure that all child processes of the monitored application are
153 killed when the service stops by recursing through all running
154 processes and terminating those whose parent is the application
155 or one of its descendents.
159 * Removed incorrect ExpandEnvironmentStrings() error.
161 A log_event() call was inadvertently left in the code causing an error
162 to be set to the eventlog saying that ExpandEnvironmentStrings() had
163 failed when it had actually succeeded.
167 * Allow use of REG_EXPAND_SZ values in the registry.
169 * Don't suicide on exit status 0 by default.
171 Suiciding when the application exits 0 will cause recovery actions to be
172 taken. Usually this is inappropriate. Only suicide if there is an
173 explicit AppExit value for 0 in the registry.
175 Technically such behaviour could be abused to do something like run a
176 script after successful completion of a service but in most cases a
177 suicide is undesirable when no actual failure occurred.
179 * Don't hang if startup parameters couldn't be determined.
180 Instead, signal that the service entered the STOPPED state.
181 Set START_PENDING state prior to actual startup.
185 * Ensure systems recovery actions can happen.
187 In Windows versions earlier than Vista the service manager would only
188 consider a service failed (and hence eligible for recovery action) if
189 the service exited without setting its state to SERVICE_STOPPED, even if
190 it signalled an error exit code.
191 In Vista and later the service manager can be configured to treat a
192 graceful shutdown with error code as a failure but this is not the
195 Try to configure the service manager to use the new behaviour when
196 starting the service so users who set AppExit to Exit can use recovery
199 Also recognise the new AppExit option Suicide for use on pre-Vista
200 systems. When AppExit is Suicide don't stop the service but exit
201 inelegantly, which should be seen as a failure.
205 * Send properly formatted messages to the event log.
207 * Fixed truncation of very long path lengths in the registry.
211 * Decide how to handle application exit.
213 When the service exits with exit code n look in
214 HKLM\SYSTEM\CurrentControlSet\Services\<service>\Parameters\AppExit\<n>,
215 falling back to the unnamed value if no such code is listed. Parse the
216 (string) value of this entry as follows:
218 Restart: Start the application again (NSSM default).
219 Ignore: Do nothing (srvany default).
220 Exit: Stop the service.
224 * Added support for building a 64-bit executable.
226 * Added project files for newer versions of Visual Studio.