Humm... that did it, but I have no clue why. I've had HUP issues before, but usually it resulted in the spawned process being killed as soon as the command finished. I've never had it go the other way (freeze).
I need to study up on my shell signals. Thanks for the pointer. On Jun 4, 7:01 am, Jamis Buck <[EMAIL PROTECTED]> wrote: > You might need to use nohup. If you go to the google groups page for > the list, you can search for "nohup" to get a few messages that have > been posted about that strategy: > > http://groups.google.com/group/capistrano/search? > group=capistrano&q=nohup > > - Jamis > > On Jun 3, 2007, at 1:55 AM, eden li wrote: > > > > > Hi all, > > > I've got a task that runs an init.d script as root, but whenever I run > > the task, capistrano freezes. It's waiting for the command to finish > > even though the output from said script shows that it's completed. > > > When I run the command directly on the server, I have no issues. The > > script returns immediately with a zero status indicating success. > > > Here's the task: > > > task :pen_up, roles => :app do > > sudo "/etc/init.d/pen start" > > sudo "monit monitor pen" > > end > > > On the server, init.d/pen start looks like this (note, I'm on gentoo): > > > #!/sbin/runscript > > PID=/var/run/pen.pid > > depend() { > > need net > > } > > start() { > > ebegin "Starting pen" > > start-stop-daemon \ > > --start --pidfile $PID --startas /usr/bin/pen -- \ > > -r 127.0.0.1:7000 \ > > -p $PID \ > > -S 14 \ > > localhost:7001 \ > > # ... +13 more with ports incrementing per line ... > > eend $? > > } > > > The init.d scripts was built from templates provided by gentoo, so I'm > > assuming something quirky is going on there. However, freezing only > > seems to occur on the "start" action of the init.d script, other > > actions within the script work without issue. > > > Anyone seen this before? --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
