403Webshell
Server IP : 104.21.95.231  /  Your IP : 162.159.114.31
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_services
#!/bin/bash
#
# Script: reload_services
#
# Usage: reload_services
#
# Description: A script used to reload services that may use Let's Encrypt-generated SSL certificates
#
# Author: Jerry Golding stolen from Keith Muska's restart_services
#
# Changelog:
# * 01/20/2025: Jerry Golding
# - Initial write
# * 07/13/2026: Paul Bernal
# - Change "reload" action to "restart" for vsftpd (Job type reload is not applicable for unit vsftpd.service).

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
    systemctl reload httpd
fi
if systemctl is-active --quiet nginx
then
    systemctl reload nginx
fi
if systemctl is-active --quiet postfix
then
    systemctl reload postfix
fi
if systemctl is-active --quiet dovecot
then
    systemctl reload dovecot
fi
if systemctl is-active --quiet vsftpd
then
    systemctl restart vsftpd
fi
}

HELP () {
echo "A script used to reload services that may use Let's Encrypt-generated SSL certificates"
echo "usage: reload_services"
}

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

Youez - 2016 - github.com/yon3zu
LinuXploit