replace running windows process using file resource
I have a small Windows daemon that runs in "user space". Currently, it is distributed as two file resources. One puts the executable where it needs to live. The other puts a shortcut to the first file in startup menu. Now I'm trying to push a new version of the daemon.
Putting the new exe in Puppet may lead to permission denied errors because Windows doesn't let you overwrite the currently running process. I can run an exec that kills the process easy enough, but am not sure how/if I can wire this up right using standard ... (more)