garethr / garethr-riemann

Puppet module for Riemann, published on the Puppet Forge
https://forge.puppetlabs.com/garethr/riemann
Apache License 2.0
16 stars 19 forks source link

backwards compatibility for puppet template riemann.conf.erb #8

Closed grvalex closed 9 years ago

grvalex commented 11 years ago

The version of upstart in Ubuntu 10.x doesn't support the "setuid" directive. The easy fix is to wrap it in a version check:

<% if @lsbmajdistrelease.to_d > 10 then -%> setuid <%= user %> <% end -%>

garethr commented 9 years ago

The referenced commit fixes this issue. Thanks for reporting and apologies for taking so long to respond.