PHP 8.2.30
Preview: nginx_start Size: 771 B
/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/dev/vagrant/nginx_start

#!/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

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
1.45 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
123 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
71 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
528 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
220 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
662 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
717 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.09 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
771 B lrwxr-xr-x 2026-02-05 09:04:09
Edit Download
3.87 KB lrwxr-xr-x 2026-01-27 23:50:52
Edit Download
236 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).