root/apps/marble/trunk/script/stop_merb

Revision 500, 259 bytes (checked in by duane.johns..@gmail.com, 1 year ago)

Initial import of Marble blog

  • Property svn:executable set to
Line 
1 #!/usr/bin/env ruby
2 require 'fileutils'
3
4 pids=[]
5
6 port_or_star = ARGV[0] || '*'
7
8 Dir[File.dirname(__FILE__)+"/../log/merb.#{port_or_star}.pid"].each do |f|
9   pid = IO.read(f).chomp.to_i
10   puts "killing PID: #{pid}"
11   Process.kill(9, pid)
12   FileUtils.rm f
13 end
Note: See TracBrowser for help on using the browser.