@@ -34,6 +34,8 @@ def load_current_resource
3434 @supervisor_gid = Logstash . get_attribute_or_default ( node , @instance , 'supervisor_gid' )
3535 @runit_run_template_name = Logstash . get_attribute_or_default ( node , @instance , 'runit_run_template_name' )
3636 @runit_log_template_name = Logstash . get_attribute_or_default ( node , @instance , 'runit_log_template_name' )
37+ @nofile_soft = Logstash . get_attribute_or_default ( node , @instance , 'limit_nofile_soft' )
38+ @nofile_hard = Logstash . get_attribute_or_default ( node , @instance , 'limit_nofile_hard' )
3739end
3840
3941action :restart do
@@ -112,7 +114,9 @@ def load_current_resource
112114 log_file : svc [ :log_file ] ,
113115 workers : svc [ :workers ] ,
114116 supervisor_gid : svc [ :supervisor_gid ] ,
115- upstart_with_sudo : svc [ :upstart_with_sudo ]
117+ upstart_with_sudo : svc [ :upstart_with_sudo ] ,
118+ nofile_soft : svc [ :nofile_soft ] ,
119+ nofile_hard : svc [ :nofile_hard ]
116120 )
117121 notifies :restart , "service[#{ svc [ :service_name ] } ]" , :delayed
118122 end
@@ -247,7 +251,9 @@ def svc_vars
247251 supervisor_gid : @supervisor_gid ,
248252 templates_cookbook : @templates_cookbook ,
249253 runit_run_template_name : @runit_run_template_name ,
250- runit_log_template_name : @runit_log_template_name
254+ runit_log_template_name : @runit_log_template_name ,
255+ nofile_soft : @nofile_soft ,
256+ nofile_hard : @nofile_hard
251257 }
252258 svc
253259end
0 commit comments