ruby/trema/command/kill.rb in trema-0.1.3.2 vs ruby/trema/command/kill.rb in trema-0.2.0

- old
+ new

@@ -45,10 +45,10 @@ options.parse! ARGV context = Trema::DSL::Context.load_current # [FIXME] Trema apps does not appear in context.apps. why? - pid_file = File.join( Trema.pid_directory, "#{ ARGV[ 0 ] }.pid" ) + pid_file = File.join( Trema.pid, "#{ ARGV[ 0 ] }.pid" ) if FileTest.exist?( pid_file ) Trema::Process.read( pid_file ).kill! end host = context.hosts[ ARGV[ 0 ] ]