403Webshell
Server IP : 3.138.164.131  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64
User : injazaat ( 1471)
PHP Version : 8.1.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/dev/vagrant/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/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

Youez - 2016 - github.com/yon3zu
LinuXploit