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