exec { "Flag myservice for restart":
command => '/bin/touch /var/run/services/myservice_update',
refreshonly => true,
subscribe => File['/etc/myservice.conf']
}
On Fri, Mar 20, 2015 at 06:17:55AM -0700, jcbollinger wrote:
> exec { "Flag myservice for restart":
> command => '/bin/touch /var/run/services/myservice_update',
> refreshonly => true,
> subscribe => File['/etc/myservice.conf']
> }
exec { "restart needed: ${service}":
command => "echo restart_needed_${service}=true >${factfile}",
refreshonly => true,
subscribe => File[$file],
}