[Capistrano] Re: how to spawn/launch/detach a process?

2007-02-20 Thread Phlip
It seems that nohup didn't work from the command line, so I have a ticket out with my ISP to see if there's a permission issue or something. They said it worked too. Thanks to all, and I was just about to implement your suggestions when... ...I realized, because I already have BackgrounDRb,

[Capistrano] Re: how to spawn/launch/detach a process?

2007-02-19 Thread Bil Kleb
On 2/18/07, Phlip [EMAIL PROTECTED] wrote: run cd #{current_path} ; nohup ruby script/push_server It seems that nohup didn't work from the command line, so I have a ticket out with my ISP to see if there's a permission issue or something. I don't claim to understand it as I don't have

[Capistrano] Re: how to spawn/launch/detach a process?

2007-02-18 Thread Vegan Buddy
Put nohup at the beginning and at the end. The nohup will allow it outlive its TTY. run('nohup ruby script/push_server ') On 2/18/07, Phlip [EMAIL PROTECTED] wrote: Capitranoids: I need to write run('ruby script/push_server'), and leave that service running on the (Linux, Apache) web

[Capistrano] Re: how to spawn/launch/detach a process?

2007-02-18 Thread Phlip
Vegan Buddy wrote: Put nohup at the beginning and at the end. The nohup will allow it outlive its TTY. run('nohup ruby script/push_server ') That works fine from the SSH shell, and I can't get it working from deploy.rb. Start with script/start_juggernaut.sh: cd ~/champion/current

[Capistrano] Re: how to spawn/launch/detach a process?

2007-02-18 Thread Ezra Zygmuntowicz
Philip- The nohup has to be in the cap recipe not in a script on the server. task :restart, :roles = :app do run 'kill `ps aux | grep push_server | grep -v grep | cut -c 10-15`' run 'cp ~/juggernaut.yml champion/current/config/' run 'chmod 755 ~/champion/current/public ' +

[Capistrano] Re: how to spawn/launch/detach a process?

2007-02-18 Thread Phlip
run cd #{current_path} ; nohup ruby script/push_server It seems that nohup didn't work from the command line, so I have a ticket out with my ISP to see if there's a permission issue or something. (Nohup worked on the command line... Until I hupped! ;-) -- Phlip