Hello Vagrant experts!

In this thread
<https://groups.google.com/forum/#!topic/vagrant-up/XVFPIOXU8aI> I asked
how to copy the nginx folder out to Vagrant project folder, so that I can
edit the server block definitions from the comfort of the host machine.

It turns out that, if I do this, when I run `vagrant up`, nginx starts, but
fails to initialize the sites (presumably because the contents of the nginx
folder is changed by Vagrant after nginx has loaded). The short term
solution is to run...

vagrant ssh
> sudo service nginx restart
... after `vagrant up`.

My question is: Is there a way to automate this restart of nginx?

Can this be done through an entry in the Vagrantfile? Or would it be
cleaner to set up a script that will run automatically on the guest server,
and if so what would this script be and how would it be run?

Thanks in advance for all your enlightenment,


This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB