File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9696 :install_dev => true ,
9797 :processorcount => 1
9898 } ,
99+ {
100+ :listen_ip => '' ,
101+ } ,
99102 {
100103 :pidfile => false ,
101104 } ,
172175 )
173176 expected_lines = [
174177 "logfile #{ param_hash [ :logfile ] } " ,
175- "-l #{ param_hash [ :listen_ip ] } " ,
176178 "-p #{ param_hash [ :tcp_port ] } " ,
177179 "-U #{ param_hash [ :udp_port ] } " ,
178180 "-u #{ param_hash [ :user ] } " ,
188190 else
189191 expected_lines . push ( "-m 950" )
190192 end
193+ if ( param_hash [ :listen_ip ] != '' )
194+ expected_lines . push ( "-l #{ param_hash [ :listen_ip ] } " )
195+ end
191196 if ( param_hash [ :lock_memory ] )
192197 expected_lines . push ( "-k" )
193198 end
Original file line number Diff line number Diff line change @@ -34,8 +34,11 @@ logfile <%= @logfile -%>
3434# UNIX socket path to listen on
3535-s <%= @unix_socket %>
3636<% else -%>
37+
38+ <% if @listen_ip != '' -%>
3739# IP to listen on
3840-l <%= @listen_ip %>
41+ <% end -%>
3942
4043# TCP port to listen on
4144-p <%= @tcp_port %>
You can’t perform that action at this time.
0 commit comments