diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-12-13 17:44:19 +0200 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-12-13 17:44:19 +0200 |
commit | a64a25baf9dd9ecff571bbab7a0dcb860eb06d24 (patch) | |
tree | 33fe5e170c6002e20cadd4d1fed97374fb97a581 /sql/nt_servc.h | |
parent | 76383243b2c46d12f08d7c3f50f55d235affbc5a (diff) | |
download | mariadb-git-a64a25baf9dd9ecff571bbab7a0dcb860eb06d24.tar.gz |
Bug#11754011: 45546: START WINDOWS SERVICE, THEN EXECUTE WHAT IS NEEDED.
Added a global read-only option slow-start-timeout to control the
Windows service control manager's service start timeout, that was
currently hard-coded to be 15 seconds.
The default of the new option is 15 seconds.
The timeout can also be set to 0 (to mean no timeout applicable).
Diffstat (limited to 'sql/nt_servc.h')
-rw-r--r-- | sql/nt_servc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/nt_servc.h b/sql/nt_servc.h index 5bee42dedf0..949499d8d7f 100644 --- a/sql/nt_servc.h +++ b/sql/nt_servc.h @@ -71,6 +71,16 @@ class NTService */ void SetRunning(void); + /** + Sets a timeout after which SCM will abort service startup if SetRunning() + was not called or the timeout was not extended with another call to + SetSlowStarting(). Should be called when static initialization completes, + and the variable initialization part begins + + @arg timeout the timeout to pass to the SCM (in milliseconds) + */ + void SetSlowStarting(unsigned long timeout); + /* Stop() is to be called by the application to stop the service |