mhallin / vagrant-notify-forwarder

A file system event forwarding plugin for Vagrant
MIT License
152 stars 18 forks source link

Provision restart #2

Open CharlieC3 opened 9 years ago

CharlieC3 commented 9 years ago

The plugin now stops and starts the notify watch process(es) on the host when running vagrant provision. I'm implementing this because a SIGINT sent to a running vagrant process kills its children (even if they are detached). Then when running vagrant provision, the stopped process(es) do not start up again.

This change helps keep a constant and predictable state of the processes in defense of any SIGINTs sent to the main vagrant process.

This contains changes found in https://github.com/mhallin/vagrant-notify-forwarder/pull/1 as well. Once https://github.com/mhallin/vagrant-notify-forwarder/pull/1 is merged, this PR should contain fewer changes.

CharlieC3 commented 9 years ago

I'll fix the conflicts when I get a chance!