403Webshell
Server IP : 104.21.95.231  /  Your IP : 104.23.243.226
Web Server : Apache
System : Linux vm3310.eosdns.net 4.18.0-553.132.1.el8_10.x86_64 #1 SMP Thu Jun 11 14:27:43 UTC 2026 x86_64
User : carnalmedia ( 1000)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /mojo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /mojo/reload_webservers
#!/bin/bash
#
# Script: reload_webservers
#
# Usage: reload_webservers
#
# Description: A script used to gracefully reload web servers Apache and Nginx.
#
# Author: Keith Muska
#
# Changelog:
# * 03/18/2025: Keith Muska
# - Initial write

if [ "$(whoami)" != 'root' ]
then
	echo "You must execute this script as the root user!"
	exit 1
fi

RELOAD () {
if systemctl is-active --quiet httpd
then
    httpd -k graceful
fi
if systemctl is-active --quiet nginx
then
    nginx -s reload
fi
}

HELP () {
echo "A script used to gracefully reload web services Apache and Nginx"
echo "usage: reload_webservers"
}

if [ -z "$1" ]
then
    RELOAD
else
    HELP
fi

Youez - 2016 - github.com/yon3zu
LinuXploit