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