wip
This commit is contained in:
@@ -65,9 +65,8 @@ private ######################################################################
|
||||
end
|
||||
|
||||
def kill_all(signal="SIGTERM")
|
||||
p [:ff]
|
||||
running_processes.each do |pid, process|
|
||||
p [:pid, pid]
|
||||
p [:killing, pid]
|
||||
Process.kill(signal, pid) rescue Errno::ESRCH
|
||||
end
|
||||
end
|
||||
|
||||
@@ -14,9 +14,9 @@ class Foreman::Process
|
||||
def run(pipe, basedir, environment)
|
||||
Dir.chdir(basedir) do
|
||||
with_environment(environment) do
|
||||
io = IO.popen("#{entry.command} 2>&1", "w+")
|
||||
io = IO.popen("#{entry.command} $FOO 2>&1", "w+")
|
||||
@pid = io.pid
|
||||
output pipe, "started with pid %d"
|
||||
output pipe, "started with pid %d" % @pid
|
||||
Thread.new do
|
||||
until io.eof?
|
||||
output pipe, io.gets
|
||||
|
||||
Reference in New Issue
Block a user