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