Comment the scripts in system/bin
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
09d9f2c1c8
commit
e405bbcd89
7 changed files with 94 additions and 21 deletions
|
@ -1,16 +1,23 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# server.sh
|
||||
#
|
||||
# This script allows me to quickly start or stop apache2 and mysql.
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
||||
#
|
||||
# Usage: ./server.sh [start|stop]
|
||||
|
||||
if [ "$1" == "start" ]; then
|
||||
# DESCRIPTION:
|
||||
# This script starts / stops the Apache and MariaDB servers.
|
||||
#
|
||||
# USAGE:
|
||||
# ./server.sh start|stop
|
||||
if [ "${1}" == "start" ]; then
|
||||
sudo systemctl start httpd.service
|
||||
sudo systemctl start mariadb.service
|
||||
elif [ "$1" == "stop" ]; then
|
||||
elif [ "${1}" == "stop" ]; then
|
||||
sudo systemctl stop httpd.service
|
||||
sudo systemctl stop mariadb.service
|
||||
else
|
||||
echo "'$1' is an unknown option"
|
||||
echo "${1} is an unknown option"
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue