generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf in sml-rubber-0.9.13 vs generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf in sml-rubber-1.5.5

- old
+ new

@@ -1,6 +1,11 @@ <% - @path = "/etc/syslog.conf" - @post = "/etc/init.d/sysklogd restart" - @additive = ["# rubber-haproxy-start", "# rubber-haproxy-end"] + is_rsyslog = File.exist?('/etc/init.d/rsyslog') + if is_rsyslog + @path = "/etc/rsyslog.d/haproxy.conf" + @post = "service rsyslog restart" + else + @path = "/etc/syslog.conf" + @post = "/etc/init.d/sysklogd restart" + end %> local0.* /var/log/haproxy.log