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