Skip to content

Commit 28c4287

Browse files
committed
msi: fix slow start issue on Windows
Until chef/win32-service#85 is merged, This fix should be applied to fluent-package not to block starting fluentdwinsvc service on Windows. See fluent#618 Closes: fluent#630 Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 1bd0d76 commit 28c4287

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

fluent-package/Gemfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ if ENV["INSTALL_GEM_FROM_LOCAL_REPO"]
3131
# into managed Gemfile.lock
3232
source FLUENTD_LOCAL_GEM_REPO do
3333
gem "fluentd"
34+
# Until https://github.com/chef/win32-service/pull/85 is merged,
35+
# this fix should be applied to fluent-package not to block starting fluentdwinsvc service on Windows.
36+
# See https://github.com/fluent/fluent-package-builder/issues/618
37+
gem 'win32-service', git: 'https://github.com/fluent-plugins-nursery/win32-service.git', branch: 'fix-slow-start-with-ruby3', platforms: windows_platforms
3438
end
3539
else
3640
# Lock to specific revision
@@ -81,7 +85,8 @@ gem "ffi-win32-extensions", "1.0.4", platforms: windows_platforms
8185
gem "nokogiri", "1.15.5", platforms: windows_platforms
8286
gem "win32-event", "0.6.3", platforms: windows_platforms
8387
gem "win32-ipc", "0.7.0", platforms: windows_platforms
84-
gem "win32-service", "2.3.2", platforms: windows_platforms
88+
# Use forked version of win32-service until https://github.com/chef/win32-service/pull/85 is merged.
89+
#gem "win32-service", "2.3.2", platforms: windows_platforms
8590
gem "winevt_c", "0.10.1", platforms: windows_platforms
8691
gem "win32-eventlog", "0.6.7", platforms: windows_platforms
8792
gem "fluent-plugin-parser-winevt_xml", "0.2.6", platforms: windows_platforms

0 commit comments

Comments
 (0)