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