Skip to content

Commit 4d8e012

Browse files
authored
dmg: use compatible service name for config and socket (#478)
To align with Linux service definition. Signed-off-by: Daijiro Fukuda <[email protected]>
1 parent 7c8d1f2 commit 4d8e012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluent-package/templates/usr/sbin/fluentd.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!<%= install_path %>/bin/ruby
22
ENV["GEM_HOME"]="<%= gem_install_path %>/"
33
ENV["GEM_PATH"]="<%= gem_install_path %>/"
4-
ENV["FLUENT_CONF"]="/etc/<%= compat_package_dir %>/<%= service_name %>.conf"
4+
ENV["FLUENT_CONF"]="/etc/<%= compat_package_dir %>/<%= compat_service_name %>.conf"
55
ENV["FLUENT_PLUGIN"]="/etc/<%= compat_package_dir %>/plugin"
6-
ENV["FLUENT_SOCKET"]="/var/run/<%= package_dir %>/<%= service_name %>.sock"
6+
ENV["FLUENT_SOCKET"]="/var/run/<%= package_dir %>/<%= compat_service_name %>.sock"
77
if ARGV.include?("--version")
88
require "<%= install_path %>/share/config"
99
Dir.glob("<%= install_path %>/lib/ruby/**/gems/**/fluent/version.rb").each do |v|

0 commit comments

Comments
 (0)