--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/61aff915-21a1-4945-b346-dbfbcb699391%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HiIf I define:exec { '/bin/sleep 300 &':timeout => 10,}and run it with puppet apply: it happily starts the sleep, backgrounds it and finishes - leaving the sleep in the background alive.Is this behaviour as expected?
I personally expected that puppet would ensure all started processes are killed if once the exec resource finishes.
On Tuesday, May 22, 2018 at 1:38:08 AM UTC-5, Thomas Müller wrote:HiIf I define:exec { '/bin/sleep 300 &':timeout => 10,}and run it with puppet apply: it happily starts the sleep, backgrounds it and finishes - leaving the sleep in the background alive.Is this behaviour as expected?It's what I would have expected, at any rate.I personally expected that puppet would ensure all started processes are killed if once the exec resource finishes.I'm not sure why someone would expect that.
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/472f95ef-6d52-461a-9083-be3d5856203e%40googlegroups.com.
Use an attribute of the Exec resource, such as onlyif to restrict it's execution if that's what you are trying to do.