3 * Existing services can now be managed using the GUI
4 or on the command line.
6 * NSSM can now set the priority class of the managed
9 * NSSM can now optionally rotate existing files when
12 * Unqualified path names are now relative to the
13 application startup directory when redirecting I/O.
15 * NSSM can now set the service display name, description,
16 startup type and log on details.
20 * Services installed from the GUI no longer have incorrect
21 AppParameters set in the registry.
25 * Services installed from the commandline without using the
26 GUI no longer have incorrect AppStopMethod* registry
31 * Support AppEnvironmentExtra to append to the environment
32 instead of replacing it.
34 * The GUI is significantly less sucky.
38 * Timeouts for each shutdown method can be configured in
41 * The GUI is slightly less sucky.
45 * NSSM can now redirect the service's I/O streams to any path
46 capable of being opened by CreateFile().
48 * Allow building on Visual Studio Express.
50 * Silently ignore INTERROGATE control.
52 * Try to send Control-C events to console applications when
57 * Fixed case where NSSM could kill unrelated processes when
62 * NSSM is now translated into Italian.
64 * Fixed GUI not allowing paths longer than 256 characters.
68 * Fixed default GUI language being French not English.
72 * Fixed failure to run on Windows 2000.
76 * NSSM is now translated into French.
78 * Really ensure systems recovery actions can happen.
80 The change supposedly introduced in v2.4 to allow service recovery
81 actions to be activated when the application exits gracefully with
82 a non-zero error code didn't actually work.
86 * Support AppEnvironment for compatibility with srvany.
90 * Fixed failure to compile messages.mc in paths containing spaces.
92 * Fixed edge case with CreateProcess().
94 Correctly handle the case where the application executable is under
95 a path which contains space and an executable sharing the initial
96 part of that path (up to a space) exists.
100 * Fixed failure to run on Windows versions prior to Vista.
104 * Read Application, AppDirectory and AppParameters before each restart so
105 a change to any one doesn't require restarting NSSM itself.
107 * Fixed messages not being sent to the event log correctly in some
110 * Try to handle (strictly incorrect) quotes in AppDirectory.
112 Windows directories aren't allowed to contain quotes so CreateProcess()
113 will fail if the AppDirectory is quoted. Note that it succeeds even if
114 Application itself is quoted as the application plus parameters are
115 interpreted as a command line.
117 * Fixed failed to write full arguments to AppParameters when
118 installing a service.
122 Back off from restarting the application immediately if it starts
123 successfully but exits too soon. The default value of "too soon" is
124 1500 milliseconds. This can be configured by adding a DWORD value
125 AppThrottle to the registry.
127 Handle resume messages from the service console to restart the
128 application immediately even if it is throttled.
130 * Try to kill the process tree gracefully.
132 Before calling TerminateProcess() on all processes assocatiated with
133 the monitored application, enumerate all windows and threads and
134 post appropriate messages to them. If the application bothers to
135 listen for such messages it has a chance to shut itself down gracefully.
139 * Handle missing registry values.
141 Warn if AppParameters is missing. Warn if AppDirectory is missing or
142 unset and choose a fallback directory.
143 First try to find the parent directory of the application. If that
144 fails, eg because the application path is just "notepad" or something,
145 start in the Windows directory.
147 * Kill process tree when stopping service.
149 Ensure that all child processes of the monitored application are
150 killed when the service stops by recursing through all running
151 processes and terminating those whose parent is the application
152 or one of its descendents.
156 * Removed incorrect ExpandEnvironmentStrings() error.
158 A log_event() call was inadvertently left in the code causing an error
159 to be set to the eventlog saying that ExpandEnvironmentStrings() had
160 failed when it had actually succeeded.
164 * Allow use of REG_EXPAND_SZ values in the registry.
166 * Don't suicide on exit status 0 by default.
168 Suiciding when the application exits 0 will cause recovery actions to be
169 taken. Usually this is inappropriate. Only suicide if there is an
170 explicit AppExit value for 0 in the registry.
172 Technically such behaviour could be abused to do something like run a
173 script after successful completion of a service but in most cases a
174 suicide is undesirable when no actual failure occurred.
176 * Don't hang if startup parameters couldn't be determined.
177 Instead, signal that the service entered the STOPPED state.
178 Set START_PENDING state prior to actual startup.
182 * Ensure systems recovery actions can happen.
184 In Windows versions earlier than Vista the service manager would only
185 consider a service failed (and hence eligible for recovery action) if
186 the service exited without setting its state to SERVICE_STOPPED, even if
187 it signalled an error exit code.
188 In Vista and later the service manager can be configured to treat a
189 graceful shutdown with error code as a failure but this is not the
192 Try to configure the service manager to use the new behaviour when
193 starting the service so users who set AppExit to Exit can use recovery
196 Also recognise the new AppExit option Suicide for use on pre-Vista
197 systems. When AppExit is Suicide don't stop the service but exit
198 inelegantly, which should be seen as a failure.
202 * Send properly formatted messages to the event log.
204 * Fixed truncation of very long path lengths in the registry.
208 * Decide how to handle application exit.
210 When the service exits with exit code n look in
211 HKLM\SYSTEM\CurrentControlSet\Services\<service>\Parameters\AppExit\<n>,
212 falling back to the unnamed value if no such code is listed. Parse the
213 (string) value of this entry as follows:
215 Restart: Start the application again (NSSM default).
216 Ignore: Do nothing (srvany default).
217 Exit: Stop the service.
221 * Added support for building a 64-bit executable.
223 * Added project files for newer versions of Visual Studio.