Allow setting application priority.
[nssm.git] / ChangeLog.txt
1 Changes since 2.21
2 ------------------
3   * Existing services can now be managed using the GUI
4     or on the command line.
5
6   * NSSM can now set the priority class of the managed
7     application.
8
9   * NSSM can now optionally rotate existing files when
10     redirecting I/O.
11
12   * Unqualified path names are now relative to the
13     application startup directory when redirecting I/O.
14
15   * NSSM can now set the service display name, description,
16     startup type and log on details.
17
18 Changes since 2.20
19 ------------------
20   * Services installed from the GUI no longer have incorrect
21     AppParameters set in the registry.
22
23 Changes since 2.19
24 ------------------
25   * Services installed from the commandline without using the
26     GUI no longer have incorrect AppStopMethod* registry
27     entries set.
28
29 Changes since 2.18
30 ------------------
31   * Support AppEnvironmentExtra to append to the environment
32     instead of replacing it.
33
34   * The GUI is significantly less sucky.
35
36 Changes since 2.17
37 ------------------
38   * Timeouts for each shutdown method can be configured in
39     the registry.
40
41   * The GUI is slightly less sucky.
42
43 Changes since 2.16
44 ------------------
45   * NSSM can now redirect the service's I/O streams to any path
46     capable of being opened by CreateFile().
47
48   * Allow building on Visual Studio Express.
49
50   * Silently ignore INTERROGATE control.
51
52   * Try to send Control-C events to console applications when
53     shutting them down.
54
55 Changes since 2.15
56 ------------------
57   * Fixed case where NSSM could kill unrelated processes when
58     shutting down.
59
60 Changes since 2.14
61 ------------------
62   * NSSM is now translated into Italian.
63
64   * Fixed GUI not allowing paths longer than 256 characters.
65
66 Changes since 2.13
67 ------------------
68   * Fixed default GUI language being French not English.
69
70 Changes since 2.12
71 ------------------
72   * Fixed failure to run on Windows 2000.
73
74 Changes since 2.11
75 ------------------
76   * NSSM is now translated into French.
77
78   * Really ensure systems recovery actions can happen.
79
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.
83
84 Changes since 2.10
85 ------------------
86   * Support AppEnvironment for compatibility with srvany.
87
88 Changes since 2.9
89 -----------------
90   * Fixed failure to compile messages.mc in paths containing spaces.
91
92   * Fixed edge case with CreateProcess().
93
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.
97
98 Changes since 2.8
99 -----------------
100   * Fixed failure to run on Windows versions prior to Vista.
101
102 Changes since 2.7
103 -----------------
104   * Read Application, AppDirectory and AppParameters before each restart so
105     a change to any one doesn't require restarting NSSM itself.
106
107   * Fixed messages not being sent to the event log correctly in some
108     cases.
109
110   * Try to handle (strictly incorrect) quotes in AppDirectory.
111
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.
116
117   * Fixed failed to write full arguments to AppParameters when
118     installing a service.
119
120   * Throttle restarts.
121
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.
126     
127     Handle resume messages from the service console to restart the
128     application immediately even if it is throttled.
129
130   * Try to kill the process tree gracefully.
131
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.
136
137 Changes since 2.6
138 -----------------
139   * Handle missing registry values.
140
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.
146
147   * Kill process tree when stopping service.
148
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.
153
154 Changes since 2.5
155 -----------------
156   * Removed incorrect ExpandEnvironmentStrings() error.
157
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.
161
162 Changes since 2.4
163 -----------------
164   * Allow use of REG_EXPAND_SZ values in the registry.
165
166   * Don't suicide on exit status 0 by default.
167
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.
171     
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.
175
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.
179
180 Changes since 2.3
181 -----------------
182   * Ensure systems recovery actions can happen.
183
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
190     default behaviour.
191
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
194     actions as expected.
195
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.
199
200 Changes since 2.2
201 -----------------
202   * Send properly formatted messages to the event log.
203
204   * Fixed truncation of very long path lengths in the registry.
205
206 Changes since 2.1
207 -----------------
208  *  Decide how to handle application exit.
209
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:
214
215         Restart: Start the application again (NSSM default).
216         Ignore:  Do nothing (srvany default).
217         Exit:    Stop the service.
218
219 Changes since 2.0
220 -----------------
221   * Added support for building a 64-bit executable. 
222
223   * Added project files for newer versions of Visual Studio.