Hi, On 19/02/07, Bil Kleb <[EMAIL PROTECTED]> wrote:
> I don't claim to understand it as I don't have anything in my code > that asks for input, but sometimes I find I need to throw a /dev/null > input > stream at a script to get it to nohup properly, e.g., > > nohup ruby script/push_server < /dev/null & > I've had a similar experience. I also find that it sometimes *still* doesn't work, although it'll often work on the second or third attempt! I haven't actually used it in a deployment before, but an alternative I use with an svn post-commit hook is to use screen, which would be something along the lines of: screen -d -m ruby script/push_server which starts it detached. For bonus points, it doesn't leave empty nohup.outs lying around. Cheers, Graeme -- Graeme Mathieson Rubaidh Ltd: Scottish for Ruby on Rails <http://www.rubaidh.com/> Personal blog: <http://woss.name/> Rubaidh Ltd is a company registered in Scotland with registration number SC297029. The registered address is: Rubaidh Ltd 12d Monktonhall Terrace Musselburgh East Lothian. EH21 6ER United Kingdom --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
