Advertisement
MorpheusArch

Untitled

May 24th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.57 KB | None | 0 0
  1. #This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
  2. #Software Foundation, either version 3 of the License, or (at your option) any later version.
  3.  
  4. #This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  5. #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  6.  
  7. #You should have received a copy of the GNU General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>.
  8. ############################################################################################################################################################
  9. if [ $(id -u) != "0" ]; then
  10.         echo "You must be root to run this script"
  11.         exit 1
  12. fi
  13. ###########################################################
  14. if [ -d /var/log/apache2 ]; then
  15.     echo "Displaying Status Of Apache2 Webserver"
  16.     service apache2 status
  17. else
  18.     echo "Apache2 webserver not installed...skipping"
  19. fi
  20. ###########################################################
  21. if [ -d /var/log/vsftpd ]; then
  22.     echo "Displaying Status of ftp server"
  23.     service vsftpd status
  24. else
  25.     echo "vsftpd FTP Server not installed...skipping"
  26. fi
  27. ###########################################################
  28. if [ -d /var/log/mysql ]; then
  29.     echo "Displaying Status of MySQL"
  30.     service mysql status
  31. else
  32.     echo "MySQL Database not installed...skipping"
  33. fi
  34. ###########################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement