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