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
-~----------~----~----~----~------~----~------~--~---