From 9b860b8fa0ef2f43a3c570af81c00c4da9b86c82 Mon Sep 17 00:00:00 2001 From: David Swift Date: Tue, 22 Feb 2011 16:10:56 -0800 Subject: [PATCH] add fix for cap invoking sudo for executing a remote task to background another process --- lib/ruby/java/vm.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ruby/java/vm.rb b/lib/ruby/java/vm.rb index f3da222f..5de0315d 100644 --- a/lib/ruby/java/vm.rb +++ b/lib/ruby/java/vm.rb @@ -16,6 +16,7 @@ def run(classname, options) else command << "&" command << " echo $! > #{options[:pid_file]}" if options[:pid_file] + command.unshift("nohup") end else command << "; echo $! > #{options[:pid_file]}" if options[:pid_file]