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