Jamis Buck wrote: > 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.
How about: run "sh -c \"/sbin/service start jboss &\"" I'm not sure what capistrano magic might prohibit this from working remotely, but sh(1) should get exec()'d with "/sbin/service..." as an argument. The ampersand should do its work then and the jboss process's parent will be init/launchd/etc. You should also see stdout & stderr. I do this all the time with sudo, e.g.: sudo -u mysql sh -c "mysqld_safe &" -Drew --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
