#!upstart description "Restart nginx after synced folders mounted" author ".silent" start on vagrant-mounted # Automatically restart process if crashed respawn # Essentially lets upstart know the process will detach itself to the background expect fork # Run before process pre-start script end script # Start the process script service nginx restart end script
config.vm.provision "shell", path: "provision.sh"
Is that what you are after?
Alvaro.
--
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
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/7e393032-8a8f-40e2-ab95-3a4914531bf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's exactly what I want except that, this is intended to be run at first "vagrant up" and when the provision script is run the first time, the /vagrant folder isn't mounted yet.
--
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
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/f44b7d65-438e-4ed5-ac68-ace5f3f02028%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1aca03fd-da58-4b58-8587-1b2627df9a2f%40googlegroups.com.
==> default: Running provisioner: shell...
default: Running: /var/folders/vh/plvhbdqx35ncp68sk1jvs0s80000gp/T/vagrant-shell20160222-39958-1sbyxsl.sh
==> default: stdin: is not a tty
==> default: /vagrant
==> default: will run npm install
==> default: supervisor server.js
z2-3:t kikitux$
Thanks
Alvaro.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/f97cbe73-7751-4724-9d5b-76c72c70eaee%40googlegroups.com.
==> default: Running provisioner: shell...
default: Running: /var/folders/b3/ndmwgg0d12d1wt10z6pg2sxw0000gq/T/vagrant-shell20160223-3619-zzkjqe.sh
==> default: stdin: is not a tty
==> default: /vagrant
==> default: will run npm install
==> default: supervisor server.js
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/125192db-fa22-4684-8f8b-9de787d813ab%40googlegroups.com.