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