%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 188.40.95.74 / Your IP : 216.73.216.142 Web Server : Apache System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64 User : vlasotin ( 1054) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/dev/vagrant/ |
Upload File : |
#!/opt/cpanel/ea-ruby27/root/usr/bin/ruby # This file is overwritten by 'vagrant provision'. For the source, # see dev/vagrant/nginx_start in the Phusion Passenger source # tree. ENV['PASSENGER_BEEP_ON_ABORT'] = '1' def run_in_bg(*command) return fork do Process.setsid exec(*command) end end File.open('inst/logs/error.log', 'a') do |f| f.write("\n\n\n\n-------------- NGINX START #{Time.now} --------------\n\n\n\n") end tail_pid = run_in_bg("tail -n 0 -f inst/logs/error.log") nginx_pid = run_in_bg("./objs/nginx", *ARGV) begin Process.waitpid(nginx_pid) nginx_pid = nil rescue Interrupt ensure Process.kill('INT', tail_pid) Process.waitpid(tail_pid) if nginx_pid Process.kill('INT', nginx_pid) Process.waitpid(nginx_pid) end end