Hi there,
I'm trying to start a process in the VM every time I do 'vagrant up' on an Ubuntu 14.x VM.
I have the following:
Vagrantfile:
Vagrant.configure(2) do |config|
# ...
config.vm.provision "up", type: "shell", run: "always", path: 'provision_up.sh'
end
provision_up.sh :
cd /home/vagrant/src/la-poderosa/grunt
nohup grunt > /dev/null 2>&1 &
It does work if I do 'vagrant ssh' and call provision_up.sh by hand, but it does not when I do 'vagrant halt' and then 'vagrant up'.
Could it be related to vagrant up using root instead of vagrant user? I so, how can I solve it?
I'm not a linux expert so any pointers will be very appreciated.
Thanks !
Martin