AnonSec Shell
Server IP : 185.86.78.101  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/thread-self/root/etc/rc1.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/thread-self/root/etc/rc1.d/K01httpd
#!/bin/sh
# Startup script for the Apache Web Server
# chkconfig: 345 85 15
# Description: Startup script for Apache webserver on Debian. Place in /etc/init.d and
# run 'update-rc.d -f httpd defaults', or use the appropriate command on your
# distro. For CentOS/Redhat run: 'chkconfig --add httpd'

### BEGIN INIT INFO
# Provides:          httpd
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts Apache Web Server
# Description:       starts Apache Web Server
### END INIT INFO

ARGV="$@"
APACHE_PATH='/www/server/apache'
HTTPD="$APACHE_PATH/bin/httpd"
PID="$APACHE_PATH/logs/httpd.pid"
#
# pick up any necessary environment variables
if test -f /www/server/apache/bin/envvars; then
  . /www/server/apache/bin/envvars
fi

ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
# --------------------                              --------------------
# ||||||||||||||||||||   END CONFIGURATION SECTION  ||||||||||||||||||||

# Set the maximum number of file descriptors allowed per child process.
if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
    $ULIMIT_MAX_FILES
fi

ERROR=0
if [ "x$ARGV" = "x" ] ; then 
    ARGV="-h"
fi

case $ARGV in
    start|stop|restart|graceful|graceful-stop)
        echo -n "$ARGV apache... "
        $HTTPD -k $ARGV
        if [ "$?" != 0 ] ; then
            echo " failed"
        else
            echo " done"
        fi
        ;;
    configtest)
        echo -n "test apache configure... "
        $HTTPD -t
        if [ "$?" != 0 ] ; then
            echo " failed"
        else
            echo " done"
        fi
        ;;
    reload)
        echo -n "reload apache... "
        $APACHE_PATH/bin/apachectl graceful
	echo " done"
        ;;
    status)
        if [ -f "$PID" ]; then  
            echo "Apache is running."
        else
            echo "Apache is stopped."
        fi 
        ;;
    *)
        echo $"Usage: $0 {start|stop|restart|graceful|graceful-stop|configtest|status}"
        ;;
esac


Anon7 - 2022
AnonSec Team