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