!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/wwwconfig-common/   drwxr-xr-x
Free 130.06 GB of 142.11 GB (91.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     restart.sh (2.34 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/sh
# File:		restart.sh
# Changes:
#	20010219 Ola Lundqvist <opal@debian.org>
#	20010430 Ola Lundqvist <opal@debian.org>
#		Removed bash specific issues.
#	20011022 Luca De Vitis <luca@debian.org>
#		Introduced the error variable.
#	20020116 Ola Lundqvist <opal@debian.org>
#		Documented the error variable.
#       20020126 Ola Lundqvist <opal@debian.org>
#		Better error handing for this one.
#	20020317 Ola Lundqvist <opal@debian.org>
#		Applied simple patch from
#		"Luca - De Whiskey's - De Vitis" <luca@debian.org>
#       20061118 Ola Lundqvist <opal@debian.org>
#               Applied patch from Frederic Schutz <schutz@mathgen.ch>
#               to make sure that restart failure do not break postinst.
#       20080611 Ola Lundqvist <opal@debian.org>
#               Now uses invoke-rc.d instead if available.
# Needs:	$servers - the servers to check for.
#		$restart - where it searches for if it exists.
# Description:	Restarts a server if it is found in the restart variable.
# Sets:		$status = {error, nothing, restart}
#	 	$restarted = the ones that are restarted in order.
#		$error = error message (if $status = error)
# Note:		$restart can be somthing like this: "apache exim"

status="nothing"
error=""
if [ -z "$servers" ] ; then
    status="error"
    error="No servers specified in restart.sh."
else
    restart=" $restart "
    for A in $servers ; do
	verify=$(echo "$restart" | sed -e "s| $A ||g;")
	if [ "$verify" != "$restart" ] ; then
	    log="${log}$A needs to be restarted."
	    if [ -x /usr/sbin/invoke-rc.d ] && [ -x /etc/init.d/$A ] ; then
		if ! /usr/sbin/invoke-rc.d $A restart >/dev/null 2>&1 3>&1 4>&1 5>&1; then
		    status="error"
		    error="ERROR! /usr/sbin/invoke-rc.d $A restart, returned an error. $A could not be restarted."
		fi
	    elif [ -x /etc/init.d/$A ] ; then
		if ! /etc/init.d/$A restart >/dev/null 2>&1 3>&1 4>&1 5>&1; then
		    status="error"
		    error="ERROR! /etc/init.d/$A returned an error. $A could not be restarted."
		fi
	    elif [ -x /usr/sbin/invoke-rc.d ] ; then
		if ! /usr/sbin/invoke-rc.d $A restart >/dev/null 2>&1 3>&1 4>&1 5>&1; then
		    status="error"
		    error="ERROR! /usr/sbin/invoke-rc.d $A restart, returned an error. $A could not be restarted."
		fi
	    else
		status="error"
		error="ERROR! /etc/init.d/$A or /usr/sbin/invoke-rc.d is not installed (or not executable)."
	    fi
	fi
    done
fi

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0081 ]--