Hi Alvaro,

thanks for your answer!

It didn't work. Could it be related with not having a terminal allocated, o 
using the root user? Any ideas if there is any log I can read to get more 
info?

Thanks!
Martin

On Wednesday, June 10, 2015 at 9:24:50 AM UTC-3, Alvaro Miranda Aguilera 
wrote:
>
> hello 
>
> I suggest the following change: 
>
>
> config.vm.provision "up", type: "shell", run: "always", inline: 'bash 
> /vagrant/provision_up.sh &' 
>
> I use that and works fine for me. 
>
> Alvaro. 
>
>
>
>
> On Wed, Jun 10, 2015 at 11:52 PM, Martin Rubi <[email protected] 
> <javascript:>> wrote: 
> > 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 
> > 
> > -- 
> > 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] <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to