Hi Martijn,
Something like this might do it.
define site::queueworker {
file { 'worker-config':
..do your /etc/init/configfile here
notify => Exec['kick-upstart'],
}
exec { 'kick-upstart':
...do your upstart-reload here
require => File['worker-config'],
refreshonly => true,
before => Service['worker'],
notify => Service['worker'],
}
service { 'worker':
..do your service here
require => File['worker-config']
}
}
--
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/4fdd4175-3425-0b0f-479c-83cf3f98c883%40area536.com.
For more options, visit https://groups.google.com/d/optout.