Sha256: c056324ef0530b7f275f822ba3bb024bbc2b064dc1c3bc664fab18991a95faf6

Contents?: true

Size: 446 Bytes

Versions: 14

Compression:

Stored size: 446 Bytes

Contents

#!/usr/bin/env ruby

#This script is used to restart the FCGI-spec-test servers.

require "rubygems"
require "php4r"

#Close down the running instance of FCGI-server-process.
fpath = "/tmp/hayabusa_fcgi_Fcgi_test_fcgi.conf"

if File.exists?(fpath) and fcont = File.read(fpath) and !fcont.empty?
  cont = Marshal.load(fcont)
  Process.kill("HUP", cont[:pid])
end

#Restart apache to restart any FCGI instances.
Php4r.passthru("apache2ctl restart")

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hayabusa-0.0.30 bin/hayabusa_spec_restart.rb
hayabusa-0.0.29 bin/hayabusa_spec_restart.rb
hayabusa-0.0.28 bin/hayabusa_spec_restart.rb
hayabusa-0.0.25 bin/hayabusa_spec_restart.rb
hayabusa-0.0.24 bin/hayabusa_spec_restart.rb
hayabusa-0.0.23 bin/hayabusa_spec_restart.rb
hayabusa-0.0.22 bin/hayabusa_spec_restart.rb
hayabusa-0.0.20 bin/hayabusa_spec_restart.rb
hayabusa-0.0.19 bin/hayabusa_spec_restart.rb
hayabusa-0.0.18 bin/hayabusa_spec_restart.rb
hayabusa-0.0.17 bin/hayabusa_spec_restart.rb
hayabusa-0.0.16 bin/hayabusa_spec_restart.rb
hayabusa-0.0.15 bin/hayabusa_spec_restart.rb
hayabusa-0.0.14 bin/hayabusa_spec_restart.rb