Kevin,

You'll need to invoke the command via nohup, to ensure the process  
will outlive the parent that spawned it. Something like:

   run "nohup /sbin/service start jboss"

The drawback of this is that nohup swallows all output of the  
command, so you'll not get any feedback of whether the command  
actually started or not. :( I've not found a better solution, though.

- Jamis

On Mar 23, 2007, at 5:40 AM, [EMAIL PROTECTED] wrote:

>
> I am using the 'run' command to try and start a service (jboss) on a
> remote machine. The init script is installed and works when executed
> on the remote machine via
>
> /sbin/service start jboss
>
> or
>
> /etc/rc.d/init.d/jboss start
>
> When I run either of these commands through capistrano, the server
> startup is begun and then terminated when capistrano closes the
> connection. It's as if I was issuing a ctrl-c command to the script.
> How can I get capistrano to let the service keep running when the
> connection is closed?
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to