On Friday, 20 March 2015 14:04:25 UTC, Christopher Wood wrote:
>
> 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],
> }
>
>
Thanks all - sounds like generating a marker file would be pretty
straightforward, and I like the idea of comparing the file's timestamp
against the service start time.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/19520810-4b86-4773-9dc6-371ac7ba29df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.