A head scratcher here...
So, have a vagrant project, and the vagrant file runs a script every boot
in order to start various services (e.g. elastic search), as so
Vagrant.configure("2") do |config|
config.vm.box = "cbednarski/ubuntu-1604"
...
config.vm.provision :shell, path: "vagrant/startup.sh", run: "always"
end
In startup.sh, we have:
echo "Starting elastic search..."
cd /var/www/bin/;
chmod 755 run_es_vagrant.sh;
sudo -u www-data DOMAIN='myproject' nohup ./run_es_vagrant.sh &
I have verified these are present in the correct place.
On my machine everything works fine every time, but when my colleague tries
(who unfortunately is faaaaar away, so I can't see exactly what they're
doing), when it gets to this line they always get:
default: nohup:
default: failed to run command './run_es_vagrant.sh'
default: : No such file or directory
Any thoughts on what my colleague is doing differently that could prevent
this from working?
Marcus
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/ad713cf8-f812-4ee2-be85-9e9ff79cfc25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.